This is project demonstrates how we can use the IT automation tool Ansible to create AWS hosts and deploy an Nginx container.
- Ansible version 2.1.1.0
- AWS Cli tools
- AWS account with PEM, Key and Secrets known
- Create an AWS account
- Specify your PEM, Key and Secret in inventories/aws/group_vars/all.yml
- Create your host:
./scripts/cluster.sh create
- Deploy the Nginx Docker container:
./scripts/cluster.sh deploy-nginx
- To terminate your instance:
./scripts/cluster.sh terminate
Note * There is a secrets file included to demonstrate how we can use ansible-vault but it is not required for this example.