aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap
AWS::CloudFormation::Stack does not update NotificationARNs property
- Dominant language
- No language data
- Stars
- 1.1k
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
### Name of the resource
AWS::CloudFormation::Stack
### Resource Name
_No response_
### Issue Description
After using AWS::CloudFormation::Stack to create a nested stack, if you later add the NotificationARNs property, it is ignored.
New Nested stacks will have the notification enabled, but existing one are not updated.
### Expected Behavior
When adding NotificationARNs with a topic ARN, the existing Nested Stack should be updated with a notification configuration.
### Observed Behavior
The existing Nested Stack are not updated effectively. Only newly created ones have the notification.
### Test Cases
1. Create a bucket S3 with a dummy template that will serve as a nested stack:
```
AWSTemplateFormatVersion: 2010-09-09
Description: Dummy template
Resources:
NullResource:
Type: AWS::CloudFormation::WaitConditionHandle
```
3. Create a parent CF template with a Nested Stack:
```
AWSTemplateFormatVersion: 2010-09-09
Description: Parent dummy template
Resources:
NestedStack:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://cf-templates-1f3e030iyelxl-eu-west-1.s3.eu-west-1.amazonaws.com/dummy.yml
```
4. Deploy it
5. Update the NestedStack resource to have a notification:
```
AWSTemplateFormatVersion: 2010-09-09
Description: Dummy template
Resources:
NestedStack:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: https://cf-templates-1f3e030iyelxl-eu-west-1.s3.eu-west-1.amazonaws.com/dummy.yml
NotificationARNs:
- arn:aws:sns:eu-west-1:123456789012:topic-example
```
6. Update the parent stack
7. The update is seen by CF, the events shows that an update is performed on the nested stack (both before and after the cleanup, which is fishy). In the end, the nested stack still does not have the notification
If you deploy a new stack from the same template, the Nested Stack will have the notification.
NB: It seems that it does not work either if the Nested Stack was created with a notification and the NotificationARNs property is removed later.
### Other Details
_No response_
Contributor guide
Research direction
No repository file or test is identified. Start by reproducing the parent and nested stack templates from the issue, first without NotificationARNs and then after adding or removing it. Compare the update events and the nested stack's notification configuration; done means existing nested stacks reflect the property changes, not only newly created stacks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100