-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Labels
@aws-cdk/pipelinesCDK Pipelines libraryCDK Pipelines libraryeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
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
pipeline.addStage(new cdk.Stage(scope, 'MyStage'));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
- CDK CLI Version : 1.117.0 (build 0047c98)
- Framework Version: 1.117.0 (build 0047c98)
- Node.js Version: v14.15.0
- OS : macOS
- Language (Version): TypeScript
Workaround
const stage = new cdk.Stage(scope, 'MyStage');
new cdk.Stack(stage, 'EmptyStackRemoveThis', {
stackName: 'EmptyStackRemoveThis',
});This is 🐛 Bug Report
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/pipelinesCDK Pipelines libraryCDK Pipelines libraryeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2