Skip to content

CDK version 1.16.2 - cdk deploy does not accept stackname #4997

@pputhran

Description

@pputhran

❓ General Issue

The Question

Were there any recent changes related to passing stackname to CDK deploy?

Noticed my CDK deploy started failing since the version was updated to 1.16.2

I am passing a stack name to cdk deploy

cdk deploy ${PERF_TEST_STACK_NAME} 

where export PERF_TEST_STACK_NAME=somestackname

but cdk deploy is returning "No stack found matching 'somestackname'. Use "list" to print manifest” and when I do cdk list, it returns PerftestStackAirlineStack

/bin/cdk-app.ts

const STACK_NAME = process.env.PERF_TEST_STACK_NAME
const app = new cdk.App();
new PerftestStackAirlineStack(app, 'PerftestStackAirlineStack', {stackName: STACK_NAME});

This was working before I updated the cdk version (previous working verison was 1.10.x).

Environment

  • CDK CLI Version: 1.16.2 (build 5893301)
  • Module Version: @aws-cdk/core: 1.16.2
  • OS: OSX Mojave
  • Language: Typescript

Other information

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.in-progressThis issue is being actively worked on.needs-triageThis issue or PR still needs to be triaged.p0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions