https://github.com/stackbuilders/ansible-aws
Deploy a basic AWS infrastructure with Ansible
https://github.com/stackbuilders/ansible-aws
Last synced: 7 months ago
JSON representation
Deploy a basic AWS infrastructure with Ansible
- Host: GitHub
- URL: https://github.com/stackbuilders/ansible-aws
- Owner: stackbuilders
- License: mit
- Created: 2018-09-26T15:51:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T02:15:36.000Z (almost 3 years ago)
- Last Synced: 2024-04-11T20:59:33.653Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 1.77 MB
- Stars: 4
- Watchers: 9
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Configure AWS with Ansible
Deploy a basic AWS infrastructure with Ansible
### Setup AWS-CLI access and install dependencies for `aws-cli`
[Install AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/awscli-install-linux.html)
### 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.