Open jw-maynard opened 6 years ago
This even occurs when the role is already present, is properly configured and can be added to any EC2 (via console for example) even with the latest aws_provider 2.57.0
I have been using 1.60.0 for a long time due to stability issues, and all is working fine with EC2 creations. Now I am testing 2.70 and this issue is still there for some reason and builds break.
I also encountered this error when creating an autoscaling group and aws_provider 3.40.0. The autoscaling group was created successfully after retrying.
Error: Error creating AutoScaling Group: ValidationError: You must use a valid fully-formed launch template. Value (scaling-group-profile) for parameter iamInstanceProfile.name is invalid. Invalid IAM Instance Profile name
Also experiencing the same issue, with the value not matching the submitted name. This occurs when creating an autoscaling group from the teraform/autoscaling/aws module. Latest version of terraform and aws provider being used. Verified that name being shown isn't being used anywhere in code.
Community Note
Terraform Version
Terraform v0.11.7
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/jw-maynard/1cd12403b132d65cdaaad0286d06670e
Expected Behavior
Terraform should wait for the IAM Instance Profile to be created and then attach it to all instances.
Actual Behavior
Terraform manages to bring up some of the instances but seems to always fail on one. Increasing the instance count seems to increase the number of instances that fail in this way. Error message:
Steps to Reproduce
terraform apply
Important Factoids
Interestingly I've tested the same config but simply changed the aws_instance resources so they do not use a Placement Group and this problems does not seem to occur.
References