Nuts and Bolts

Everyone has opinions and thoughts. Here are some of ours.

A Simple Introduction to AWS CloudFormation Part 3: Updating a Stack

Posted by Tung Nguyen
on
Mar 24, 2017

In the last 2 stories, we created an EC2 instance and a Route53 record successfully with CloudFormation. We have yet to walk through the useful update-stack command though. In this post, we’ll use the 2 templates created in the first 2 posts to play around with the update-stack command.

You can check on the status of the stack creation via the CloudFormation console.

Now let’s pretend we have updated the single-instance.yml template to the instance-and-route53.yml template and want to update the CloudFormation example stack so that there it will add the route53 record.

Notice how CloudFormation disassociated the route53 DNS entry and removed the record.

Summary

You have now successfully updated stacks with CloudFormation. This is a common task you will need to learn to develop with CloudFormation. Remember to delete the stack and clean up after yourself. I hope this helps!