无法使用 CodeCommit 存储库启动 Sagemaker Notebook 实例
我将 CodeCommit 中的一个存储库链接到了 Sagemaker。但是,当我尝试使用该存储库启动实例时,它失败了,并且收到一条消息:
fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/MyRepo/': The requested URL returned error: 403
我认为它可能与 IAM 角色有关。我是否应该向 AmazonSageMaker-ExecutionRole 添加一些策略。我对此完全陌生,因此请原谅此处术语的任何错误使用。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是由您的 IAM 角色引起的;如果您使用 UI 创建角色,我认为默认情况下,它会创建一个需要资源在其 ARN 中包含“sagemaker”的角色(Codecommit 存储库、S3 存储桶...)。因此,您有 2 个选择:
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: