Skip to content

(aws-cdk): cdk diff always fallback to no change-set diff #914

@singlewind

Description

@singlewind

Describe the bug

We are migrating cloudformation template to CDK. In our CDK stack, we have included a cloudformation template. When we run diff, it shows warning

Failed to create change set with error: 'The following CloudFormation Parameters are missing a value: XXX, YYY, ZZZ', falling back to no change-set diff

I tried to specify parameters with --parameters XXX=xxx,YYY=yyy,ZZZ=zzz flag. But no luck. As I know, cdk deploy has this flag. How can we specify in cdk diff

Expected Behavior

cdk diff stackName --parameters XXX=xxx,YYY=yyy,ZZZ=zzz will create a changeset in AWS Cloudformation and display the difference. Then remove the changeset.

Current Behavior

Just show the difference against the current included cloudformation template.

Reproduction Steps

cdk diff stackName --parameters XXX=xxx,YYY=yyy,ZZZ=zzz

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.121.1

Framework Version

No response

Node.js Version

20

OS

ubuntu

Language

TypeScript

Language Version

5.3.3

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions