Skip to content

trigger CodePipeline on schedule

0

Hello,

Is there a native way in CodePipeline itself, to trigger a pipeline on schedule(cronjob)? I believe we can have a Lambda run on schedule and it triggers pipeline, but was looking for a better way.

Another question is, how can we have CodePipeline launch cloudformation templates in different regions? Is there any reference out there, to fan out using step-functions and launch templates in parallel in different regions?

Thank you

2 Answers
2
Accepted Answer

Is there a native way in CodePipeline itself, to trigger a pipeline on schedule(cronjob)? I believe we can have a Lambda run on schedule and it triggers pipeline, but was looking for a better way.

Currently your best option is exactly what you described, using lambda or aws client from a cronjob to call https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_StartPipelineExecution.html or https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutActionRevision.html

Another question is, how can we have CodePipeline launch cloudformation templates in different regions? Is there any reference out there, to fan out using step-functions and launch templates in parallel in different regions?

This article might be helpful: https://aws.amazon.com/blogs/devops/building-a-cross-regioncross-account-code-deployment-solution-on-aws/

answered 9 years ago
EXPERT
reviewed 2 years ago
0

It's been a while since I posted the answer to this question. Since then, AWS CodePipeline has introduced a new feature that streamlines the implementation process. For those interested, please refer to the official documentation at https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-trigger-source-schedule.html.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.