-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Unable to create an aws_launch_configuration with an instance store AMI #8732
Comments
Has anyone found a workaround for this yet? |
We are experiencing the same issue. This behavior change was introduced by commit 391a7f8 and affects all Terraform versions >= v0.7.x. |
The problem is due to the code not understanding that some AMIs root devices are backed by the instance store. Compare the output from the official Amazon Linux AMIs
|
I have a preliminary fix in https://github.com/tpounds/terraform/commit/e1e864a3dd87aab14e060b5b0df0c30b38083344 which seems to fix the issue. I'll submit a pull request once I do some more verification and add a few acceptance tests. |
@tpounds Any idea on an ETA for this getting merged? Thanks for the fix! :) |
Hello, I seem to have hit this error just now, and am not sure why -- has it resurfaced, or something else?
Apply yields:
|
@clebio saw a similar issue which turned out to be the persmissions on the target ami making it public got me around this. Could be ^ is being incorrectly reported as a catchall for any kind of issue with the ami |
Hi all, Issues with the terraform aws provider should be opened in the aws provider repository. Because this closed issue is generating notifications for subscribers, I am going to lock it and encourage anyone experiencing issues with the aws provider to open tickets there. (The other provider repositories are under the terraform-provider org). Please continue to open issues here for any other terraform issues you encounter, and thanks! |
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
Launch config should have been created.
When using the same AMI without block devices on a
aws_instance
resource, everything works fine.Actual Behavior
Fails with an error:
Error finding Root Device Name for AMI (ami-01f69916)
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: