简体   繁体   中英

Can't start Sagemaker Notebook Instance with a CodeCommit repo

I linked a repo in CodeCommit to Sagemaker. However when I try to start an instance with that repo it fails and I get a message:

fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/MyRepo/': The requested URL returned error: 403

I think maybe it has something to do with the IAM role. Is there some policy I should add to the AmazonSageMaker-ExecutionRole. I am completely new to this so please excuse any incorrect usage of terms here.

This is presumably caused by your IAM role; if you used the UI to create a role, I think by default, it creates a role requiring resources to have "sagemaker" in their ARN (Codecommit repos, S3 buckets...). So you have 2 options:

  • Try renaming your repo eg "myrepo-sagemaker"
  • Or edit (ask your admin if you don't have the ability) your SM IAM role to be allowed to access MyRepo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM