Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tongueroo/cloudformation-examples
basic cloudformation examples for blog posts
https://github.com/tongueroo/cloudformation-examples
Last synced: about 1 month ago
JSON representation
basic cloudformation examples for blog posts
- Host: GitHub
- URL: https://github.com/tongueroo/cloudformation-examples
- Owner: tongueroo
- Created: 2017-05-20T15:51:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T04:13:25.000Z (about 5 years ago)
- Last Synced: 2024-10-14T22:17:09.818Z (3 months ago)
- Size: 13.7 KB
- Stars: 85
- Watchers: 11
- Forks: 236
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CloudFormation Examples
[![BoltOps Badge](https://img.boltops.com/boltops/badges/boltops-badge.png)](https://www.boltops.com)
These are some very basic raw CloudFormation template examples. This examples are part of the Introductory CloudFormation blog tutorials.
1. [A Simple Introduction to AWS CloudFormation Part 1: EC2 Instance](https://medium.com/boltops/a-simple-introduction-to-aws-cloudformation-part-1-1694a41ae59d)
2. [A Simple Introduction ot AWS CloudFormation Part 2: EC2 Instance and Route53](https://medium.com/boltops/a-simple-introduction-to-aws-cloudformation-part-2-d6d95ed30328)
3. [A Simple Introduction to AWS CloudFormation Part 3: Updating a Stack](https://medium.com/boltops/a-simple-introduction-to-cloudformation-part-3-updating-a-stack-6fe2bb3931a9)
4. [A Simple Introduction to AWS CloudFormation Part 4: Change Sets = Dry Run Mode](https://medium.com/boltops/a-simple-introduction-to-cloudformation-part-4-change-sets-dry-run-mode-c14e41dfeab7)## Commands from Tutorials
### Tutorial 1
```bash
aws cloudformation create-stack --template-body file://templates/single-instance.yml --stack-name single-instance --parameters ParameterKey=KeyName,ParameterValue=tutorial ParameterKey=InstanceType,ParameterValue=t2.micro
```### Tutorial 2
```bash
aws cloudformation create-stack --template-body file://templates/single-instance.yml --stack-name --stack-name route53-$(date +%s) --parameters ParameterKey=KeyName,ParameterValue=tutorial ParameterKey=InstanceType,ParameterValue=t2.micro ParameterKey=HostedZoneName,ParameterValue=sub.tongueroo.com. ParameterKey=Subdomain,ParameterValue=testsubdomainaws cloudformation create-stack --template-body file://templates/instance-and-route53.yml --stack-name route53-$(date +%s) --parameters file://parameters/instance-and-route53.json
```### Tutorial 3
```bash
aws cloudformation create-stack --stack-name example --template-body file://templates/single-instance.yml --parameters file://parameters/single-instance.jsonaws cloudformation update-stack --stack-name example --template-body file://templates/instance-and-route53.yml --parameters file://parameters/instance-and-route53.json
aws cloudformation update-stack --stack-name example --template-body file://templates/single-instance.yml --parameters file://parameters/single-instance.json
```### Tutorial 4
```bash
aws cloudformation create-stack --stack-name example --template-body file://templates/single-instance.yml --parameters file://parameters/single-instance.jsonaws cloudformation create-change-set --stack-name example --template-body file://templates/instance-and-route53.yml --parameters file://parameters/instance-and-route53.json --change-set-name changeset-1
aws cloudformation describe-change-set --stack-name example --change-set-name changeset-1 | jq '.Changes[]'
aws cloudformation execute-change-set --stack-name example --change-set-name changeset-1
```## Lono CloudFormation Tutorial Series
You may also be interested in the [Lono CloudFormation Examples](https://github.com/tongueroo/lono-cloudformation-examples) from the [Lono CloudFormation Introduction Series](https://blog.boltops.com/2019/10/30/lono-cloudformation-framework-introduction-series-part-1-ec2-instance).