Terraform with Ansible using the pull-based approach

Go into the EffectiveDevOpsTerraform repository and create a directory called fourthproject:

$ mkdir fourthproject$ cd fourthproject

Again, we will follow the best practices for Terraform templates here and use the credentials file located in the /root/.aws directory, which contains our AWS access and secret keys. In this case, we will use Ansible in the inverted form: the Ansible pull-based approach. To use Ansible in this inverted approach, we have to make sure to install Ansible on the provisioned EC2 instance and run ansible-pull by referring to the Ansible code that is present at the source code repository.

In our case we will be using the same Ansible code that we created in Chapter ...

Get Effective DevOps with AWS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.