/Terraform-Ansible-Docker

Via terrraform run ansible that up docker with nginx image

Primary LanguageHCL

Via terrraform setup 2 servers on AWS, run ansible that up docker with nginx image.

To run this project you needs:

  1. In AWS create user with full acces, then export his credentials on local server:

export AWS_ACCESS_KEY_ID="xxxxxxxxxx"

export AWS_SECRET_ACCESS_KEY="xxxxxxxxxx"

  1. In folder with project run:

terraform init

terraform apply

After all actions, you get 2 ip's:

2021-11-21_18-31

Then, you can go on page with defaults wellcome message from nginx:

2021-11-21_18-19

2021-11-21_18-20