Open callum-spencer opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @callum-spencer 👋 Thank you for taking the time to raise this! So that we have the information needed in order to look into this, can you supply debug logs (redacted as needed) as well?
Hey @justinretzolk apologies, just added the debug output
Also seeing this issue using Terraform v1.5.5 and aws v5.9.0. Also attempted with aws v5.5.0 and still failed, wondering if there's an upstream api change.
Also fails on v1.1.2 and aws 4.67.0
This sometimes happens if the account you run terraform in doesn't have access to the AMI you are trying to provision. I guess terraform tries to get AMI details but receives an empty list because it can't see that AMI. Sharing the AMI with the target account solved this for us.
This sometimes happens if the account you run terraform in doesn't have access to the AMI you are trying to provision. I guess terraform tries to get AMI details but receives an empty list because it can't see that AMI. Sharing the AMI with the target account solved this for us.
vkulov response about missing AMI worked for me
Terraform Core Version
1.2.0
AWS Provider Version
5.10.0
Affected Resource(s)
aws_launch_configuration, asg
Expected Behavior
Launch configuration should be created so we can create ASG
Actual Behavior
Resource fails to create, "empty result" error message despite using the same code in several other environments within the same region.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform apply
Debug Output
Important Factoids
We have several other environments that match the exact configuration of this environment (GEO location etc), so not sure why this would fail unless provider requirements have changed but the Error doesn't give too much away to advise of that.
Would you like to implement a fix?
None