Skip to content

Commit

Permalink
Merge pull request #686 from perfectsense/bugfix/fix-cloudwatch-logs-…
Browse files Browse the repository at this point in the history
…for-aurora-instances

Cloudwatch log export config should only be updated on change
  • Loading branch information
harjain99 authored Nov 22, 2024
2 parents 24a716c + a4c7d66 commit aec153c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/gyro/aws/rds/DbInstanceResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,9 @@ public void doUpdate(Resource config, Set<String> changedProperties) {
.backupRetentionPeriod(
Objects.equals(getBackupRetentionPeriod(), current.getBackupRetentionPeriod())
? null : getBackupRetentionPeriod())
.cloudwatchLogsExportConfiguration(c -> c.enableLogTypes(getEnableCloudwatchLogsExports()))
.cloudwatchLogsExportConfiguration(c -> c.enableLogTypes(
Objects.equals(getEnableCloudwatchLogsExports(), current.getEnableCloudwatchLogsExports()) ?
null : getEnableCloudwatchLogsExports()))
.copyTagsToSnapshot(
Objects.equals(getCopyTagsToSnapshot(), current.getCopyTagsToSnapshot()) ? null :
getCopyTagsToSnapshot())
Expand Down

0 comments on commit aec153c

Please sign in to comment.