-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip ebs encryption flag for snapshots on launch template. #4620
Skip ebs encryption flag for snapshots on launch template. #4620
Conversation
AWS does not allow setting encryption values on ebs block devices created from a snapshot. This patch lists block devices created from snapshots from the image and skips the encryption flag on those devices. [Fixes hashicorp#4553]
What's the status of this one? Can we merge it? @bflad |
@bflad @terraformbot @tf-release-bot When will this change will be released? I also encountered same issue, and need use this urgent! |
We encountered this, and it is now blocking some of our issues: azavea/terraform-aws-ecs-cluster#34 As it stands, |
@bflad ? |
any plans to merge this? |
Hi folks 👋 Sorry for the delayed response here. The implementation in this pull request was an EC2 API lookup, which was a quite complicated workaround for the real issue of the resource schema not appropriately handling an "unspecified" value. An alternate implementation that skips the lookup has been made including the previously failing and now passing acceptance test at: #5632. |
#5632 has been merged into master with the fix and will release with version 1.34.0 of the AWS provider, likely later today. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
AWS does not allow setting encryption values on ebs block devices
created from a snapshot. This patch lists block devices created from
snapshots from the image and skips the encryption flag on those devices.
[Fixes #4553]
Note: at the moment, this patch silently ignores encryption values for ebs block devices created from a snapshot. We should probably throw an error or warning if the user sets an encryption value. The only problem is that we can't disambiguate between an encryption flag set to false and an empty value with the provider as written. WDYT @bflad ?