Replies: 8 comments 1 reply
-
Adding arbitrary actions that have nothing to do with the deployment of CDK Stages is not strictly part of the design target, but I have a feeling using |
Beta Was this translation helpful? Give feedback.
-
@rix0rrr thanks, So basically, you cannot do this: pipeline.addStage(createInfra('dev', ...));
pipeline.addStage(createInfra('test', ...));
pipeline.addStage(createInfra('prod', ...));
// Does not deploy stacks but only runs some post-production actions (CodeBuild/Lambdas)
const postproductionStage = new cdk.Stage(scope, 'PostProduction');
// ... add actions
pipeline.addStage(postproductionStage); Instead users can do this: pipeline.addStage(createInfra('dev', ...));
pipeline.addStage(createInfra('test', ...));
pipeline.addStage(createInfra('prod', ...));
// Does not deploy stacks but only runs some post-production actions (CodeBuild/Lambdas)
const postproductionWave = pipeline.addWave('PostProduction');
postproductionWave.addPost(...); I have to admit that it was not very intuitive to use Br, |
Beta Was this translation helpful? Give feedback.
-
It's unfortunate that "Stage" and "Stage" are called the same thing. The new API does not deal in terms of Pipeline Stages, it just happens to create them as an implementation detail as part of you interacting with it. |
Beta Was this translation helpful? Give feedback.
-
I'm having a similar issue with CDK for C#. I have a stage that instantiates a stack with several components and I'm getting the https://gist.github.com/nnbosko/5570135b3e72731a5e7bdb61f75829a9 |
Beta Was this translation helpful? Give feedback.
-
Still occurring in version 119. |
Beta Was this translation helpful? Give feedback.
-
It looks like the issue here has been addressed in the discussion here. So that this information continues to be easily searchable, I'm going to convert this into a discussion. If you believe this was done in error or are still experiencing problems related to this, please feel free to open a new issue. |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same issue ! I m not able to add a kind of the old buildSpec.yaml where I can build a docker image run unit test and code test coverage ...etc . I have a feeling the the CI is completely ignored and the CD is mixed with the infra code . any update on this issue please ? |
Beta Was this translation helpful? Give feedback.
-
@nnboskovic , @Outrun207, @BELAGGOUN Although not very intuitive, the workaround suggested by @rix0rrr does the job (also see example by @markusl ): Instead of a Here's a simplified example based on the import * as pipelines from 'aws-cdk-lib/pipelines';
const myPipeline = new pipelines.CodePipeline(...);
const myCodeBuildStep = new pipelines.CodeBuildStep(...);
myPipeline.addWave('MyWave', {post: [myCodeBuildStep]}); |
Beta Was this translation helpful? Give feedback.
-
We receive an error "The given Stage construct ('foo/bar') should contain at least one Stack" when migrating our code to the modern pipelines.
Reproduction Steps
What did you expect to happen?
We would like to continue adding custom stages containing only CodeBuild projects and/or Lambda Invoke actions. Not all of our stages have stacks.
Environment
Workaround
This is 🐛 Bug Report
Beta Was this translation helpful? Give feedback.
All reactions