1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
It is not best practice (at all!) to embark credentials like S3 into your container image: that will create all kinds of IAM issues very probably like the one that you are currently facing.
All your credentials should be in the execution role associated with your SageMaker container instance. See https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html to implement your needed S3 credentials plus all others you need in the execution role.
Best,
Didier
Relevant content
- asked 2 years ago
- asked a year ago

Hi, the command I shared is for local testing of the container and I mount the drive containing my credentials to the local container for testing. But in real case, yes, the role for the sagemaker instance will do the job. But what can be the reason for the deployment failure? The error is not at all clear.