amazon-web-services - 我是否可以使CodePipeline仅在手动触发时执行

标签 amazon-web-services aws-codepipeline

我有一个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/

相关文章:

codeship - 我可以跳过AWS CodePipeline构建吗?

amazon-web-services - 为什么 spark-ec2 失败并显示 ERROR : Could not find any existing cluster?

python - 使用 boto3 向 S3 存储桶添加额外标签

amazon-web-services - 将 Docker 从 Travis 部署到 AWS(或任何其他支持 SSH 的服务器)

amazon-web-services - 我可以使用 CloudFormation 将 EC2 实例附加到现有负载均衡器吗

python - Boto 与 py2exe

amazon-web-services - 从代码管道启动时,AWS 代码构建失败无法下载源

docker - 如何使用 buildspec.yml 从 AWS CodePipeline 中的 Dockerfile 构建镜像,然后推送到 ECR?

amazon-web-services - 当我将此 BucketDeployment 添加到我的 CDK CodePipeline 时,cdk synth 永远不会完成

amazon-web-services - 如何手动回滚Lambda函数的CloudFormation部署?