Git Product home page Git Product logo

aws-samples / aws-systems-manager-cloudformation-samples Goto Github PK

View Code? Open in Web Editor NEW
31.0 6.0 15.0 54 KB

Set of sample CloudFormation Documents and Systems Manager documents that show how the two service can be used together in deployments.

License: MIT No Attribution

cloudformation aws systems-management systems-automation aws-systemsmanager aws-systemmanager cloudformation-templates cloudformation-yaml cloudformation-template cloudformation-stacks

aws-systems-manager-cloudformation-samples's Introduction

Samples showing how to use AWS Systems Manager and AWS CloudFormation Together

These are examples of integrating AWS Systems Manager and AWS CloudFormation together to automate the deployment of resource into AWS.

1. cloudformation-samples - These samples show how you deploy resources like Amazon EC2 instances using CloudFormation and then using AWS Systems Manager to perform configuration. These samples have CloudFormation as the starting point for deployment.

2. systems-manager-samples - These samples show how you deploy resources like Amazon EC2 instances using AWS Systems Manager Automation Documents. These automation document demonstrate how Systems Manager Automation can use CloudFormation to deploy resources, and then perform configuration on those resources.

Please feel free to open issues on this repo requesting examples.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

aws-systems-manager-cloudformation-samples's People

Contributors

amazon-auto avatar bluphy avatar chriscoombs avatar davidmgre avatar jamesoff avatar shepherdjerred avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aws-systems-manager-cloudformation-samples's Issues

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

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.