This repository contains scripts to create:
- One EC2 with Docker, Docker-Compose and a Sample application
- Security Groups
- Mounted Volume for MongoDb
- Elastic IP
The scripts will create resources in: us-east-1
- export AWS_PROFILE=user1 # The name of the profile you want to use
- ./create-stack.sh
- ./delete-stack.sh
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_EC2.html
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html
- AvailabilityZone
- ImageId
- InstanceType
- UserData
aws configure list-profiles
export AWS_PROFILE=user1
--profile profile-name
sudo chmod +x filename.bin
lsblk