我一直在浪费很多时间来尝试使用 CloudFormation 设置 GitHub 网络挂钩。此过程的文档无用,例如:https : //docs.aws.amazon.com/codebuild/latest/userguide/sample-access-tokens.html
$ aws codebuild import-source-credentials --generate-cli-skeleton
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
batch-delete-builds | batch-get-builds
batch-get-projects | create-project
create-webhook | delete-project
delete-webhook | invalidate-project-cache
list-builds | list-builds-for-project
list-curated-environment-images | list-projects
start-build | stop-build
update-project | help
Run Code Online (Sandbox Code Playgroud)
我的问题是我找不到为带有 CloudFormation 的 CodeBuild 指定 GitHub 访问令牌的方法。我只是想为 github 存储库设置一个网络钩子,以便在创建、更新拉取请求等时运行一个简单的测试套件。 如前所述,我发现了很多半生不熟的文档,如 …