Is it possible to order Source actions in CodePipeline?

前端 未结 2 2088
温柔的废话
温柔的废话 2021-01-26 09:56

I have two different sources in my CodePipeline, ECR and S3. My deployment pipeline uploads a zip to S3, and then an image to ECR.

I need CodePipeline to detect just the

相关标签:
2条回答
  • 2021-01-26 10:48

    If the intended way is to have the ECR commit processed along with whatever is uploaded to your S3, and assuming it's a new version of the exact same object name, you could get that data into your Build stage of your Pipeline, pulling the latest version like you tried with the Lambda function; or have some alternative way to identify that new S3 object.

    If you're uploading the zip content to S3 and then committing the ECR push, you definitely could move the S3 bucket out of the Source stage and have it be somewhat independent as far as the Pipeline and triggers are concerned. It'll be another step in your Build project at the appropriate phase.

    0 讨论(0)
  • 2021-01-26 10:50

    As trigger for the CodePipeline to run, define the CloudWatch event trigger only for ECR, not for S3 changes. Disable the Pipeline built-in trigger/pull.

    https://docs.aws.amazon.com/codepipeline/latest/userguide/create-cwe-ecr-source-console.html This will make sure only ECR triggers a pipeline execution.

    0 讨论(0)
提交回复
热议问题