amazon-web-services - 请求的 URL 返回错误 : 403, AWS Server less: Amplify app to CodeCommit

标签 amazon-web-services amazon-s3 aws-amplify aws-serverless aws-codecommit

尝试在连接到 AWS CodeCommit 存储库(维护 html 代码版本历史记录)的 AWS Amplify 上使用无服务器方法托管 Web 应用程序 (html)。在 Amplify 上保存和部署应用程序在“构建”步骤中失败并返回以下错误:

2020-08-17T01:32:37.631Z [信息]:克隆到“测试”...

2020-08-17T01:32:42.406Z [信息]:致命:无法访问“https://git-codecommit.us-east-1.amazonaws.com/v1/repos/Test/”:请求的 URL 返回错误:403

2020-08-17T01:32:42.409Z [错误]:!!!无法克隆存储库

遵循的步骤:https://aws.amazon.com/getting-started/hands-on/build-serverless-web-app-lambda-apigateway-s3-dynamodb-cognito/module-1/ 第 1 步(托管静态网站,在上面的链接中)只有在我将 repo 名称准确地指定为“wildrydes-site”时才有效。如果我只是将名称更改为具有所有相同文件的其他名称,那是行不通的。我在这里遗漏了什么吗??

最佳答案

如果您收到 403 错误,您可以检查与 IAM 中的服务角色关联的策略。您需要在使用您在 Amplify 中指定的服务角色的策略中指定 CodeCommit 存储库。

Amplify App Detail

Service Role Policy

关于amazon-web-services - 请求的 URL 返回错误 : 403, AWS Server less: Amplify app to CodeCommit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63443613/

相关文章:

amazon-web-services - 使用 CDK 创建的 AWS Glue JDBC 连接需要在控制台中输入密码才能生效

android - Android 游戏的服务器

amazon-web-services - AWS Amplify AppSync IAM 401

debugging - 是否提供在 Mosaic 中查看流的任何处理节点的数据?

amazon-web-services - NoCredentialProviders : no valid providers in chain error in electron-updater with AWS S3

android - 放大授权: Unable to add User to the Pool

reactjs - 偶尔会出现在 useEffect() 中创建清理函数的警告

amazon-web-services - S3 存储桶策略 - 隐式允许 GET

amazon-web-services - 云信息 : parameterize the name of a parameter?

javascript - 如何使用express.js和request.js从Amazon S3下载文件?