Deploy a basic AWS infrastructure with Ansible
$ aws configure
You can have multiple credentials on several profiles, to add a credentials to a specific profile, use
$ aws configure --profile myprofile
$ export AWS_PROFILE=myprofile
$ cd ansible
$ ansible-galaxy install -fr requirements.yml
Run the AWS playbook
$ cd ansible
$ AWS_PROFILE=myprofile ansible-playbook playbooks/aws-provision.yml
Run the playbook to deploy the app
$ ansible-playbook playbooks/deploy-app.yml
Verify if the variables in ansible-playbook playbooks/deploy-app.yml
are adapted to your environment.