Terraform with Ansible using a push-based approach

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

$ mkdir thirdproject$ cd thirdproject

In this example, we will use the recommended practices to create Terraform templates. We will remove our AWS access_key and our AWS secret_key from our Terraform template first. We have AWS CLI installed on our system, which means that we have already configured this system to talk to our AWS account. If we don't already have AWS CLI installed, we will use the aws configure to install it. This will create a credentials file inside the /root/.aws directory, which will contain our AWS access and secret keys. We will take the advantage of this file for our Terraform ...

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.