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.

aws-cdk does not update stack description

See original GitHub issue

AWS CDK does not update stack description

Reproduction Steps

import * as core from '@aws-cdk/core';

const app = new core.App();
const stack = new core.Stack(app, 'stack', {
    description: 'aaa',
});

than deploy

cdk deploy stack

than update code

import * as core from '@aws-cdk/core';

const app = new core.App();
const stack = new core.Stack(app, 'stack', {
    description: 'bbb',
});

than deploy again

cdk deploy stack

Error Log

command cdk diff shows difference (it’s right)

Stack stack
Template
[~] Description Description: aaa to bbb

command cdk deploy does nothing (it’s wrong)

stack: deploying...
stack: creating CloudFormation changeset...

 ✅  stack (no changes)

Environment

  • CLI Version :1.14.0
  • Framework Version: 1.14.0
  • OS : darwin
  • Language : typescript

This is 🐛 Bug Report

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
djlynuxcommented, Jul 10, 2021

@shivlaks tried with --force. The issue persists.

2reactions
shivlakscommented, Aug 7, 2020

I believe users can provide the --force flag to ensure that a deploy goes through even if there are no changes. I’ll test it out to see whether description changes can be pushed out with the flag

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to update only Stack description · Issue #6474 - GitHub
StackProps object and its description parameter), a cdk deploy will not find any changes and will abort stack update.
Read more >
Troubleshooting common AWS CDK issues
When deploying my AWS CDK stack, I receive a NoSuchBucket error. Your AWS environment has not been bootstrapped, and so does not have...
Read more >
class Stack (construct) · AWS CDK
Implements IConstruct , IConstruct , IDependable , ITaggable. A root construct which represents a single CloudFormation stack.
Read more >
AWS CloudFormation stack updates
Learn how to update AWS CloudFormation stacks to make changes to a stack's resources.
Read more >
Troubleshooting common AWS CDK issues
If you do not specify both, the AWS CDK, by default, synthesizes the stack as environment-agnostic, such that it can be deployed to...
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