IAM instance roles not available for cloud-init #7999
Labels
service/ec2
Issues and PRs that pertain to the ec2 service.
service/iam
Issues and PRs that pertain to the iam service.
Terraform Version
$ terraform -v
Terraform v0.11.11
Affected Resource(s)
Terraform Configuration Files
https://registry.terraform.io/modules/trajano/swarm-aws/docker/2.3.2
Just changed from AWS 2.1 to AWS 2.2 in the samples and the instance credentials do not appear to be present during cloud init but works when you run the same script inside and
curl
ing the meta data shows the instance ID. So it appears to be a timing issue because it works with at3.micro
but not at3.small
which is a slightly faster machine.Debug Output
Panic Output
Expected Behavior
Everything should be provisioned correctly.
Actual Behavior
I get an error saying missing credentials when invoking boto3 in cloud-init
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: