aws / aws/aws-cdk-cli

aws-cdk does not update stack description

Open
#1,431 14 comments 9 reactions 0 assignees View on GitHub
bug effort/small needs-cfn p2
Dominant language
TypeScript
Stars
105
Forks
122
Avg merge
1d 17h
Merged PRs (30d)
71

Description

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: Bug Report

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the TypeScript @aws-cdk/core example, changing the stack description from aaa to bbb and running cdk diff followed by cdk deploy stack. Trace why cdk diff detects the change while deployment reports no changes. Done means the second deployment applies the updated CloudFormation stack description.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cli, cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.