-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
EBS root block encryption not available in EC2 #6246
Comments
Please also add support for |
Input
Current Output
The current workaround for this is use an encrypted AMI (see terraform-aws-modules/terraform-aws-ec2-instance#6 (comment)). |
I hacked on this functionality and got it to read the root block encrypted state, but I could not get it to encrypt an AMI that was unencrypted.
|
@johnjelinek I got this working in #7757 with unencrypted AMIs. The acceptance tests use vanilla public Ubuntu AMIs. @jcreyf I also added @a-h sadly, I didn't get to |
@joestump what about launch templates? do you plan to add a third PR for that? |
@felixb I'll take a look. |
Relevant to this issue: AWS now supports sharing encrypted AMIs across accounts now |
Hi Folks thanks for pushing this request forward. To help consolidate this EBS encryption request, I am going to roll this issue into this new parent #8624. Where we can continue to track progress and discuss implementation details. |
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! |
Community Note
Description
I would like the following to work:
Current state if used:
root_block_device.0: invalid or unknown key: encrypted
Works fine with the
ebs_block_device
resource (https://www.terraform.io/docs/providers/aws/r/instance.html#block-devices). This is a fairly general use case in AWS, without this the most used volume of an instance won't be encrypted.New or Affected Resource(s)
Potential Terraform Configuration
References
encrypted
option terraform-aws-modules/terraform-aws-ec2-instance#6The text was updated successfully, but these errors were encountered: