AWS 放大存储库
AWS amplify repository
我正在尝试通过 CloudFormation 创建一个 AWS Amplify 项目。但是我仍然想知道官方文档 https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html 中的 Repository
属性
和SDK
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplify/modules/createapprequest.html#repository
"AmplifyApp": {
"Type": "AWS::Amplify::App",
"Properties": {
"Name": {"Ref": "AmplifyProjectName"},
"Repository": ?
}
}
链接 Codecommit 存储库和 S3 存储桶均失败并出现错误
Resource handler returned message: "Invalid request provided: Repository provider not supported. (Service: Amplify, Status Code: 400, Request ID: a12af1b1-b7bd-4643-96af-3945de1a9fed, Extended Request ID: null)" (RequestToken: dc1dc831-f742-cb7d-a59a-d5d9a93ebd2a, HandlerErrorCode: InvalidRequest)
repository
键的值应该是 URL 到您的源存储库。以下是不同提供商的示例。请注意,URL 中没有尾随 .git
:
- GitHub:
https://github.com/<user>/<repo>
- 比特桶:
https://bitbucket.org/<user>/<repo>/
- 代码提交:
https://git-codecommit.<region>.amazonaws.com/v1/repos/<repo>
虽然我找不到任何带有此参数示例的官方文档,但您可以找到一个使用 GitHub 提供程序 here and a comment about BitBucket URLs here.
的博客 post
我正在尝试通过 CloudFormation 创建一个 AWS Amplify 项目。但是我仍然想知道官方文档 https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html 中的 Repository
属性
和SDK
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplify/modules/createapprequest.html#repository
"AmplifyApp": {
"Type": "AWS::Amplify::App",
"Properties": {
"Name": {"Ref": "AmplifyProjectName"},
"Repository": ?
}
}
链接 Codecommit 存储库和 S3 存储桶均失败并出现错误
Resource handler returned message: "Invalid request provided: Repository provider not supported. (Service: Amplify, Status Code: 400, Request ID: a12af1b1-b7bd-4643-96af-3945de1a9fed, Extended Request ID: null)" (RequestToken: dc1dc831-f742-cb7d-a59a-d5d9a93ebd2a, HandlerErrorCode: InvalidRequest)
repository
键的值应该是 URL 到您的源存储库。以下是不同提供商的示例。请注意,URL 中没有尾随 .git
:
- GitHub:
https://github.com/<user>/<repo>
- 比特桶:
https://bitbucket.org/<user>/<repo>/
- 代码提交:
https://git-codecommit.<region>.amazonaws.com/v1/repos/<repo>
虽然我找不到任何带有此参数示例的官方文档,但您可以找到一个使用 GitHub 提供程序 here and a comment about BitBucket URLs here.
的博客 post