Skip to content

fix: Use source_hash instead of etag to prevent drift when using KMS - #1783

Merged
npalm merged 1 commit into
github-aws-runners:developfrom
marekaf:mb-source-hash-etag
Feb 24, 2022
Merged

npalm merged 1 commit into
github-aws-runners:developfrom
marekaf:mb-source-hash-etag

Conversation

@marekaf

@marekaf marekaf commented Feb 23, 2022

Copy link
Copy Markdown
Contributor

source_hash - (Optional) Triggers updates like etag but useful to address etag encryption limitations. Set using filemd5("path/to/source") (Terraform 0.11.12 or later). (The value is only stored in state and not saved by AWS.)

source_hash should help eliminate some "plan drifts" that are caused when using KMS encryption and etag together

it shouldn't affect the functionality if not using SSE KMS on the bucket.

@npalm
npalm self-requested a review February 23, 2022 23:06
@npalm npalm changed the title use source_hash instead of etag to prevent drift when using KMS fix: Use source_hash instead of etag to prevent drift when using KMS Feb 24, 2022

@npalm npalm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marekaf Thanks!

@npalm
npalm merged commit 2923a27 into github-aws-runners:develop Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants