Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added step to create SSH key pair

...

Depending on if you want 1 terraform user per each member of your team or a single shared set of credentials will tell you how many users to create. 
We have 'protected' git repositories that store secrets, so it would make sense for our team to have a single terraform user whose credentials are stored in the repo. If everything is in a public github repo, then you probably want everyone to have their own user.

Step 3

Create an SSH key pair that you can use to login to the created EC2 boxes. You may use an existing key pair if you wish, but the terraform scripts you cloned from github are coded to look for a ~/.ssh/terraform.pub key pair.

To create the key pair run

ssh-keygen

When prompted to enter a file use:

~/.ssh/terraform

Enter a passphrase if you would like. More Info


Step 4

Install Terraform https://www.terraform.io/downloads.html

I use the home-brew version

Step

...

5

In the directory where you cloned the code to (and edited the default.tf file) run 

...