aws-samples / aws-samples/aws-systems-manager-cloudformation-samples
ERROR: CloudFormation cannot update a stack when a custom-named resource requires replacing. Unable to update SSM document.
- Dominant language
- No language data
- Stars
- 35
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
### Steps to reproduce
Step 1. Create a SSM document using CloudFormation.
```
SSMDocumentUpgradeContent:
Type: AWS::SSM::Document
Properties:
DocumentType: Command
DocumentFormat: YAML
Name: 'UpgradeDocument'
Content:
schemaVersion: "2.2"
description: "Upgrade Content to the specified release versions"
...
...
```
Step 2. Update the CFN template by modifying the SSM document **content**
```
- description: "Upgrade Content to the specified release versions"
+ description: ""
```
### Expected result
Step 1. Stack creation and SSM document to be created
Step 2. Stack updation and a new SSM document version being created
### Actual result
Step 1. The stack deployed fine and the SSM document got created.
Step 2. An error occured - `CloudFormation cannot update a stack when a custom-named resource requires replacing. Rename UpgradeDocument and update the stack again. `
I want to keep the same custom name for my SSM document on every update and I do not want an auto-generated name. Is this possible via CloudFormation?
Contributor guide
Assessment
This issue has not been assessed yet.