[BUG] error message: At least RES stage is required
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, typescript
Research direction
Start at PipelineBlueprint.ts, especially generateDeploymentDefinitions around the reported line 519, then trace the call from bin/pipeline-ci-cd-wrapper.ts. Compare the documented stages setup with the sample repository and the Bootstrap your stages documentation. Done means the reproduced DEV, INT, and PROD configuration can synthesize and deploy without the RES-stage error.
Written by the indexing model from the issue text.
Description
Describe the bug
I want to deploy to prod as described here: Bootstrap your stages
I copied the stages configuration from the docuemntation:
.defineStages([Stage.DEV, Stage.INT, Stage.PROD])
When I run this command:
CDK_QUALIFIER=$(jq -r '.config.cdkQualifier' package.json)
npx dotenv-cli -- npm run cdk bootstrap -- --profile $RES_ACCOUNT_AWS_PROFILE --qualifier ${CDK_QUALIFIER} aws://${ACCOUNT_RES}/${AWS_REGION}
or this command:
npx dotenv-cli -- npm run cdk deploy -- --all --region ${AWS_REGION} --profile $RES_ACCOUNT_AWS_PROFILE --qualifier ${CDK_QUALIFIER}
I get this error message:
throw new Error('At least RES stage is required');
Expected Behavior
No error
Current Behavior
➜ pipeline-ci-cd-wrapper git:(main) npx dotenv-cli -- npm run cdk deploy -- --all --region ${AWS_REGION} --profile $RES_ACCOUNT_AWS_PROFILE --qualifier ${CDK_QUALIFIER}
> [email protected] cdk
> cdk deploy --all --region eu-west-1 --profile res --qualifier hnb659fds
/Users/julian/dev/pipeline-ci-cd-wrapper/node_modules/@cdklabs/cdk-cicd-wrapper/src/stacks/PipelineBlueprint.ts:519
throw new Error('At least RES stage is required');
^
Error: At least RES stage is required
at PipelineBlueprintBuilder.generateDeploymentDefinitions (/Users/julian/dev/pipeline-ci-cd-wrapper/node_modules/@cdklabs/cdk-cicd-wrapper/src/stacks/PipelineBlueprint.ts:519:13)
at PipelineBlueprintBuilder.synth (/Users/julian/dev/pipeline-ci-cd-wrapper/node_modules/@cdklabs/cdk-cicd-wrapper/src/stacks/PipelineBlueprint.ts:442:44)
at Object.<anonymous> (/Users/julian/dev/pipeline-ci-cd-wrapper/bin/pipeline-ci-cd-wrapper.ts:19:4)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module.m._compile (/Users/julian/dev/pipeline-ci-cd-wrapper/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Object.require.extensions.<computed> [as .ts] (/Users/julian/dev/pipeline-ci-cd-wrapper/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
Subprocess exited with error 1
Reproduction Steps
Define PROD stage as described in the documentation:
PipelineBlueprint.builder().defineStages([Stage.DEV, Stage.INT, Stage.PROD]).addStack({
provide: (context) => {
// Create your stacks here
new PipelineCiCdWrapperStack(context.scope, `${context.blueprintProps.applicationName}PipelineCiCdWrapperStack`);
}
}).synth(app);
See sample repo: https://github.com/jumic/pipeline-ci-cd-wrapper
Possible Solution
No response
Additional Information/Context
No response
CDK CI/CD Wrapper version used
latest
Environment details (OS name and version, etc.)
macOS 15.3.1
- Dominant language
- TypeScript
- Stars
- 33
- Forks
- 9
- Avg merge
- 14h 32m
- Merged PRs (30d)
- 25
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cdklabs/cdk-cicd-wrapper
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
cdklabs/cdk-cicd-wrapper#241 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
cdklabs/cdk-cicd-wrapper#136 ·
Maintainers usually reply within 1 day
-
dependencies
Difficulty 3/5 1-2 days Newbie friendliness 35/100
cdklabs/cdk-cicd-wrapper#132 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
cdklabs/cdk-cicd-wrapper#117 · 2 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
cdklabs/cdk-cicd-wrapper#102 · 2 comments ·
Maintainers usually reply within 1 day
All issues in cdklabs/cdk-cicd-wrapper
Similar issues
-
triage
Difficulty 1/5 Under an hour Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
ranxianglei/billion-context#7860 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opencollective/opencollective#9177 ·