Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
singlewind opened this issue Jan 18, 2024 · 2 comments
Closed

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

singlewind opened this issue Jan 18, 2024 · 2 comments
Labels
bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/medium Medium work item – several days of effort p2 package/tools Related to AWS CDK Tools or CLI response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@singlewind
Copy link

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

@singlewind singlewind added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 18, 2024
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Jan 18, 2024
@singlewind singlewind changed the title (aws-cdk): (cdk diff always fallback to no change-set diff) (aws-cdk): cdk diff always fallback to no change-set diff Jan 18, 2024
@pahud
Copy link
Contributor

pahud commented Jan 19, 2024

Can you share a minimal CFN template that reproduces this issue? I am guessing your template may not have those parameters defined but I am not 100% sure.

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jan 19, 2024
@ashishdhingra ashishdhingra added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jun 4, 2024
Copy link

github-actions bot commented Jun 5, 2024

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/medium Medium work item – several days of effort p2 package/tools Related to AWS CDK Tools or CLI response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

3 participants