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

Parameter encrypted is invalid: EBS block device in launch configuration #5608

Closed
inkblot opened this issue Mar 13, 2016 · 4 comments
Closed

Comments

@inkblot
Copy link

inkblot commented Mar 13, 2016

I have an aws_launch_configuration with an ebs_block_device that looks like this:

ebs_block_device {
  device_name = "/dev/xvdf"
  snapshot_id = "${terraform_remote_state.images.output.master_snapshot_us-east-1}"
}

terraform is able to create this launch configuration (and the snapshot_id is a valid snapshot) but the autoscaling group is unable to launch instances and the activity history for the autoscaling group shows failed launches with this error message:

Launching a new EC2 instance. Status Reason: Parameter encrypted is invalid. You cannot specify the encrypted flag if specifying a snapshot id in a block device mapping. Launching EC2 instance failed.

I believe that this is essentially the same bug as #1862, but with respect to the aws_launch_configuration resource rather than aws_instance.

@radeksimko
Copy link
Member

Hi @inkblot
do you mind if we close this as a duplicate of #5360 ? I believe it's exactly the same issue.

@inkblot
Copy link
Author

inkblot commented Mar 13, 2016

That looks right.

@telebh
Copy link

telebh commented Dec 6, 2018

I have the same issue to create ASG from launch instance from template. I did not set any encryption while creating the launch template. any workaround this issue?

@ghost
Copy link

ghost commented Mar 30, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants