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

Error during terraform plan when AMI details can't be retrieved #1901

Closed
gavinheavyside opened this issue May 11, 2015 · 2 comments · Fixed by #1960
Closed

Error during terraform plan when AMI details can't be retrieved #1901

gavinheavyside opened this issue May 11, 2015 · 2 comments · Fixed by #1960
Assignees

Comments

@gavinheavyside
Copy link

I've got a running instance in an aws_launch_configuration with an AMI that has been removed/is no longer available (An ubuntu nightly cloud image).

The EC2 Console shows:

image

When I run terraform plan, even after changing the desired AMI in the .tf file, I get:

Error refreshing state: 1 error(s) occurred:

* 1 error(s) occurred:

* Expected 1 AMI for ID: ami-a52b4dd2, got: []*ec2.Image(nil)

I'm able to destroy this particular instance in favour of a new one, so it isn't a big issue for me, but it could be for other people if the AMI of a running instance gets withdrawn from availability.

@gavinheavyside
Copy link
Author

This was with Terraform 5.0.

@ghost
Copy link

ghost commented May 2, 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 May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants