https://github.com/dragonraid/aws_examples
AWS Examples
https://github.com/dragonraid/aws_examples
Last synced: 8 months ago
JSON representation
AWS Examples
- Host: GitHub
- URL: https://github.com/dragonraid/aws_examples
- Owner: dragonraid
- Created: 2019-03-22T20:11:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-26T06:11:01.000Z (almost 7 years ago)
- Last Synced: 2024-12-28T09:20:15.100Z (over 1 year ago)
- Language: Shell
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Examples
This repository contains AWS Examples. Individual directories contains examples to individual AWS Services.
## CloudFormation
- `infrastructure.yaml` ... nested stack that deploys basic infrastructure
- `vpcSubnets.yaml` ... creates vpc, private and public subnets
- `vpcRouting.yaml` ... sets up routing between subnets
- `bastion.yaml` ... creates bastion hosts in public subnet. Before creating this stack, make sure to create ssh key-pair and update `ImageId` if needed. (Replaced by `bastionV2.yaml`, because of EIPs limits per region.)
- `bastionV2.yaml` ... creates bastion hosts in public subnet
- `webapp.yaml` ... creates dummy web application.
## Deployment guide
### Prerequisites
- create IAM User and attach Administrator policy (for simplicity, not recommended in production environment). Create access key and secret access key and put into `./aws/credentials` file
- edit `Makefile` variables in order to reflect your environment
- install `python3` and `virtualenv`
### Makefile
Makefile simplifies deployment of Cloudformation templates. Available commands:
- `make infra` ... creates basic AWS infrastructure (deploys `cloudformation/infrastructure.yaml`) in `alpha` account
- `make clean_infra` ... deletes basic AWS infrastructure in `alpha` accoint
- `make webapp` ... create webapp stack (deploys `cloudformation/webapp.yaml`) in `alpha` account
- `make clean_webapp` ... deletes webapp stack in `alpha` account
- `make describe` ... describes bastions endpoint in `alpha` account
- `make beta_infra` ... creates basic AWS infrastructure (deploys `cloudformation/infrastructure.yaml`) in `beta` account
- `make beta_clean_infra` ... deletes basic AWS infrastructure in `beta` accoint
- `make beta_describe` ... describes bastions endpoint in `beta` account