Skip to content

Commit

Permalink
Merge pull request #33 from petlitskiy/release/3.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronwalker committed Sep 10, 2024
2 parents 17b0c0a + 0c1b723 commit ec6d9e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aurora-mysql.cfhighlander.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@
ComponentParam 'EnableReplicaAutoScaling', 'false'

ComponentParam 'EnableCloudwatchLogsExports', defined?(log_exports) ? log_exports : ''

ComponentParam 'EnableLocalWriteForwarding', 'false'
end
end
3 changes: 3 additions & 0 deletions aurora-mysql.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
Condition("EnableReplicaAutoScaling", FnAnd([FnEquals(Ref(:EnableReplicaAutoScaling), 'true'), FnEquals(Ref(:EnableReader), 'true')]))
Condition("EnableCloudwatchLogsExports", FnNot(FnEquals(Ref(:EnableCloudwatchLogsExports), '')))

Condition("EnableLocalWriteForwarding", FnEquals(Ref(:EnableLocalWriteForwarding), 'true'))

tags = []
tags << { Key: 'Environment', Value: Ref(:EnvironmentName) }
tags << { Key: 'EnvironmentType', Value: Ref(:EnvironmentType) }
Expand Down Expand Up @@ -81,6 +83,7 @@
EngineVersion engine_version unless engine_version.nil?

EngineMode(external_parameters[:engine_mode] == 'serverlessv2' ? 'provisioned' : external_parameters[:engine_mode])
EnableLocalWriteForwarding FnIf('EnableLocalWriteForwarding', true, Ref('AWS::NoValue'))

PreferredMaintenanceWindow maintenance_window unless maintenance_window.nil?

Expand Down

0 comments on commit ec6d9e4

Please sign in to comment.