Skip to content

stackbuilders/ansible-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configure AWS with Ansible

Deploy a basic AWS infrastructure with Ansible

Setup AWS-CLI access and install dependencies for aws-cli

Install AWS CLI

Configure AWS credentials:

$ 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 

Install dependencies for the project

$ cd ansible
$ ansible-galaxy install -fr requirements.yml

Prepare the Minichat

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.

About

Deploy a basic AWS infrastructure with Ansible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published