Skip to content
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

Closed

Conversation

jmcarp
Copy link
Contributor

@jmcarp jmcarp commented May 23, 2018

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 ?

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]
@ghost ghost added the size/M Managed by automation to categorize the size of a PR. label May 23, 2018
@bflad bflad added bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. labels May 23, 2018
@ColinHebert
Copy link
Contributor

What's the status of this one? Can we merge it? @bflad

@shuqichen
Copy link

shuqichen commented Jun 24, 2018

@bflad @terraformbot @tf-release-bot When will this change will be released? I also encountered same issue, and need use this urgent!

@rbreslow
Copy link

We encountered this, and it is now blocking some of our issues:

azavea/terraform-aws-ecs-cluster#34

As it stands, aws_launch_template is broken.

@rbreslow
Copy link

@bflad?

@shuqichen
Copy link

@bflad ?

@schammah
Copy link

schammah commented Aug 1, 2018

any plans to merge this?
unable to use aws_launch_template until then

@bflad
Copy link
Contributor

bflad commented Aug 21, 2018

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.

@bflad bflad closed this in #5632 Aug 30, 2018
@bflad
Copy link
Contributor

bflad commented Aug 30, 2018

#5632 has been merged into master with the fix and will release with version 1.34.0 of the AWS provider, likely later today.

@ghost
Copy link

ghost commented Apr 3, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. size/M Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Encrypted flag cannot be specified since device /dev/sda1 has a snapshot specified
6 participants