我有一个CodePipeline设置。但是现在我只想在手动触发管道时运行管道,这可能吗?
最佳答案
这为我工作:
使用 Github webhook 集设置常规管道。
这将创建并注册一个内部AWS Webhook。
然后只需通过aws-cli注销并删除webhooks like it is written in the aws docs。
根据您所在的地区调整以下内容,我的是us-east-2:
找出网钩的名称:
aws codepipeline list-webhooks
取消注册:
aws codepipeline deregister-webhook-with-third-party --webhook-name <webhook-name>
删除:
aws codepipeline delete-webhook --name <webhook-name>
笔记:
必须将源步骤配置为使用 Github webhook 。
现在,您可以通过以下方式通过AWS Console或通过aws-cli手动触发管道:
aws codepipeline start-pipeline-execution --name <pipeline-name>
关于amazon-web-services - 我是否可以使CodePipeline仅在手动触发时执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53137392/