You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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