question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI: support for Stages/nested Cloud Assemblies

See original GitHub issue

Using 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:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
tomaszdudek7commented, Apr 1, 2021

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:

  • Stages are containers for multiple Stacks (so that for example you have various resources grouped as separate Stacks, Stage is a cointainer for them(that makes a Stage kinda like a topology of your system) and then you create new Stage("qa0"), new Stage("preprod") to have various environments of your system)
  • …but they are not ready to use (without CDK Pipelines) yet?
0reactions
github-actions[bot]commented, May 6, 2021

⚠️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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found