Open acannistra opened 4 years ago
Confirmed that aws cli within docker container can access EC2 IAM roles.
Working on this in #25 [045be20]. Removing dependencies on credentials in dockerfile. This likely changes the tutorial contents' dependency on having a configured profile.
The current workflow for building the Docker image that is used in Sagemaker and in Terraform deployments "bakes in" a set of credentials, which breaks for anyone using the image on infrastructure that isn't ours.
Possible avenues for a fix:
EC2CredentialSource
as the source of credentials for the default profile (see: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-metadata.html)cc: @ajijohn thanks for the report about this.