CLI: support for Stages/nested Cloud Assemblies
See original GitHub issueUsing core Stage, the stage’s stacks are not available when running cdk .
Reproduction Steps
#!/usr/bin/env node
import "source-map-support/register";
import * as cdk from "@aws-cdk/core";
class MyStage extends cdk.Stage {
constructor(scope: cdk.App, id: string, props: cdk.StageProps) {
super(scope, id);
new cdk.Stack(this, "stack");
}
}
const app = new cdk.App();
new MyStage(app, "stage", {})
Error Log
$ cdk list
This app contains no stacks
Environment
- CLI Version : aws-cli/1.18.77 Python/3.8.3 Linux/5.6.16-300.fc32.x86_64 botocore/1.17.5
- Framework Version: 1.46.0
- Node.js Version: 12.16.1
- OS : Fedora 32
- Language (Version): TypeScript (3.9.3)
Other
I figure the Stage is either broken or supposed to be used in a specific context, but I could not find examples. From the docs it seems to do exactly what I want, that is to group some stacks and instantiate them multiple times with different names/environments. The App is a Stage (which is strange by itself IMHO) but it does not accept an Environment, so one has to do this with a custom construct, ending up with crappy Stack ids… So if it’s not a bug, it’s at least very confusing.
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:9 (6 by maintainers)
Top Results From Across the Web
AWS CDK Toolkit (cdk command) - AWS Documentation
The AWS CDK Toolkit, the CLI command cdk , is the primary tool for interacting with your AWS CDK app. It executes your...
Read more >VMware Cloud Services CLI
Create and Manage Cloud Assembly constructs like cloud zones, image and flavor profiles. Create and Manage cross-service constructs like Project and Cloud ......
Read more >Preparing for air-gapped installations - IBM
For the Cloud Pak for Data control plane, specify lite . For a service, specify the assembly name of the service. Cluster_architecture, Specify...
Read more >Google Cloud Command Line Interface (gcloud CLI)
Orchestrate Google Cloud resources granularly and at scale. Google Cloud CLI supports over 8,000 commands to provide complete management and control over nearly ......
Read more >CLI version in CodeBuild is not compatible with the library ...
... the CLI to the latest version. (Cloud assembly schema version mismatch: Maximum schema version supported is 17.0.0, but found 21.0.0).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am quite confused.
CDK Pipelines tutorial https://aws.amazon.com/blogs/developer/cdk-pipelines-continuous-delivery-for-aws-cdk-applications/ uses Stage concept. I followed the tutorial but wanted to deploy the Stage on my own first (before proceeding to CI/CD pipeline creation) - and then I hit this issue.
Do I get it correctly:
new Stage("qa0"), new Stage("preprod")
to have various environments of your system)⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.