-
Notifications
You must be signed in to change notification settings - Fork 251
S3 go getter doesn't work w/ CodeBuild Service Role Creds #152
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
Comments
I can confirm this also does not work from within an ECS container. It seems the code is explicitly looking for EC2 instance metadata URLs and does not check for |
It is terribly confusing that all other places in Terraform work, and this one fails. Took me awhile to figure out what the root issue was. Please prioritize this fix! |
Here is a workaround, in accordance with https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html (it can be sourced within a CodeBuild buildspec, for example in the
Here is the corresponding ticket in terraform: hashicorp/terraform#20439 |
Issue that was fixed in the aws provider(https://github.com/terraform-providers/terraform-provider-aws/pull/1425/files) does not seem to be fixed here. The issue arises when you true to import a module from s3 while you are running inside CodeBuild.
The text was updated successfully, but these errors were encountered: