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

ERROR: CloudFormation cannot update a stack when a custom-named resource requires replacing. Unable to update SSM document. #7

Open
jeevan-cyriac opened this issue Mar 10, 2022 · 0 comments

Comments

@jeevan-cyriac
Copy link

jeevan-cyriac commented Mar 10, 2022

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: "<An updated 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant