February 2017
Intermediate to advanced
440 pages
8h 45m
English
Now we have our AWS provider configured in Terraform, let's add a SSH key pair to use on a default account of the virtual machines we intend to launch soon.
To step through this recipe, you will need the following:
keys folder at the root of your repo:$ mkdir keys $ ssh-keygen -q -f keys/aws_terraform -C aws_terraform_ssh_key -N ''
The resource we want for this is named aws_key_pair. Let's use it inside a keys.tf file, and paste the public key content:
resource "aws_key_pair" "admin_key" { key_name = "admin_key" ...Read now
Unlock full access