Terraform: Elastic IP, SSH Key, Dynamic AMI

preview_player
Показать описание
Now that we have some networking and security basics in place,we're going to need a public IP address. We will also need a public SSH key, uploaded to AWS, that we can install into our new EC2 Instance, enabling us to connect to the server. Finally before we can create an EC2 Instance we'll also need an AMI.

#Terraform #CloudOps #AWS
Рекомендации по теме
Комментарии
Автор

Thanks for the video, for your future videos, it would be good useful to let your viewers know WHY and NOT JUST HOW we have create each resource.

joeb.
Автор

For anyone confused by where the public key comes from at 2:12:

Replace the code that runs from line 88-91 with the following

variable "key_name" {}

resource "tls_private_key" "example" {
algorithm = "RSA"
rsa_bits = 4096
}

resource "aws_key_pair" "default" {
key_name = "var.key_name"
public_key =
}

The run terraform init and it should work for you

cameronmetcalfe
Автор

Thanks so much for this. I was stumped and this helped me!

pumkinpie
Автор

How do you associate the NACLs and Sec Groups to the subnet(s) that have been created?

belfunkk
Автор

What is the source you are using for written code is it some kind of notepad. please tell me.

rohitrai