Remove CodePipeline Update from CloudFormation stack's deploy #20607
Unanswered
Mathias-dcm
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm currently using CDK Synth in order to generate templates that I deploy with a sam deploy command.
The idea behind my work is to deploy my stacks from a GitLab runner, without the use of CodePipeline (which is the actual method of deployement).
I manage to deploy my stack as I want using the template located in the cdk.out, after the CDK Synth command. However, the deploy is triggering the CodePipeline because the template contains a
"Type": AWS::CodePipeline::Pipeline
section, which leads to a* Modify cdkpipeline AWS::CodePipeline::Pipeline
operation in the sam deploy command of the stack.I want to remove this operation in the deploy section, so that the CodePipeline is not triggered. I can't modify the code in himself, because I need to keep both deployment methods alive. I also can't use the --guided prompts from the sam deploy command because the scripts are executed from a GitLab runner.
Do you have any clue on achieving this, by passing parameters on the deploy (other libraries are fine to me if it works), or by using a tool that deletes the CodePipeline section in the templates ? Maybe something exists aswell to prevent CDK Synth to generate a CodePipeline section ?
I'm open to any proposal.
Thank you already!
Beta Was this translation helpful? Give feedback.
All reactions