Pass AWS CodeBuild IAM Role inside Docker container [unable to locate credentials]
问题 The role configured on CodeBuild project works fine with the runtime environment but doesn't work when we run a command from inside the container, it says "unable to locate credentials". Let me know how can we use the role out of the box inside the container. 回答1: You can make use of credential source "EcsContainer" to assume role seamlessly without having to export new credentials in your buildspec.yml. credential_source - The credential provider to use to get credentials for the initial