Bootstrapped project for working with AWS using Vagrant and Ansible.
Do not save your AWS access key/secret key inside your provisioning scripts. Set them using enviornment variables as shown below.
export AWS_ACCESS_KEY="AKXXXXXXXXXXXXXXX"
export AWS_SECRET_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXX"
This bootsrap expects a WebServerSG
security group to be present in your AWS configuration. Follow these instructions to set up the same group.
Then you can control the instance with the following:
- To provision an EC2 instance:
vagrant up
- Stop the instance:
vagrant halt
- Terminate the instance:
vagrant destroy
MIT