Open chaitanyakommoju opened 2 years ago
ewbankkit can you please look into this issue
some can take this and resolve or some one can help out to resolve this issue
We are encountering this error as well on v4.23.0 of the provider. In our case, our launch templates we use for our auto scaling groups use custom AMIs. When we publish an updated AMI, we have a process that will automatically update each launch template to use the new AMI. However, the next time we try to apply the Terraform for one of our auto scaling groups after we have published a new AMI, that error is thrown. When it does occur we can just rerun the Terraform and on the second run it will succeed, so while we have that workaround it is not ideal, and will cause some frustration with our application development teams as we begin our rollout of auto scaling within our organization.
This continues to happen with 5.23.0.
Community Note
Terraform CLI and Terraform AWS Provider Version
I don't think the terraform version matters, but anyways here are details, I'm using terrafrom version v1.2.4 and AWS provider 4.22.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
After making any change in the autoscaling group and launching template configuration or in any other resources, it should apply the launch template version to the latest and also should apply the changes
Actual Behavior
After making any change in the autoscaling group and launching template configuration or in any other resources, it should apply the launch template version to the latest and also should apply the changes instead of this, it is throwing the error
Steps to Reproduce
Use the above terraform configuration provided and with terraform CLI version v1.2.4 and was module versions v4.22.0 and it can be reproduced
terraform apply
confirm the changes with yes
Important Factoids