-
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
aws_launch_config fails with instance-store AMIs - new in 2.23.0 #9775
Comments
@jc-asdf sorry you are running into an issue here. Can you please take a minute to provide the requested information within the issue, especially a Terraform configuration for reproducing the issue, so that we can determine how to best proceed here. In the meantime, if you haven’t already, you can pin your provider version to “2.22.0”. If this issue is only occurring with version "2.23.0” of the Terraform AWS provider.
|
Oh what happened here; looks like my actual ticket content got gobbled up. I have edited the ticket and filled it in appropriately. Many apologies for the screw up there! And yes, the |
Seeing this issue as well with Terraform 0.12.6 and provider.aws v2.23.0. Will pin to the previous release in the meantime. |
I think this has been caused by 3d330bd#diff-28aade55afa0cda57279a9d35d523488R1381 |
First go at a fix in PR #9810 above. Passes all the |
May not be directly related but as of 2.23 aws_launch_configuration returns an error is the image_id in the saved state cannot be found. I our case we have updated the AMI several times and the old one has been deleted. In <=2.22
from 2.23
|
Would appreciate some feedback on PR #9810 which reverts the problematic behaviour, and adds in some tests. It works well for me but I'm seeing a variety of other issues being reported here. If it works for you please thumbs that PR so we can get approved :) Thanks! |
The fix for this has been merged and will release with version 2.49.0 of the Terraform AWS Provider, tomorrow. Thanks to @jc-asdf for the implementation. 👍 |
This has been released in version 2.49.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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
Terraform Version
$ terraform --version
Terraform v0.11.14
Affected Resource(s)
aws_launch_configuration
Terraform Configuration Files
Debug Output
https://gist.github.com/jc-asdf/57da70548170c1a57bf20220de50bc37
Panic Output
N/A
Expected Behavior
A launch config should be created, with an instance store AMI.
Actual Behavior
Terraform aborts with an error -
Instance store backed AMIs do not provide a root device name - Use an EBS AMI
Steps to Reproduce
aws_launch_configuration
that references an Instance-Store AMI (they're rare, but they do exist!)c3
andm3
families do and are generally available.Important Factoids
This error is new as of version 2.23.0. Provider version 2.22.0 works fine. For now, the workaround would be to pin the provider to version
v2.22.0
The error hints that perhaps the provider is trying to reference the root device name, which is not available on Instance Store AMIs.
References
The text was updated successfully, but these errors were encountered: