Terraform - lansare instante EC2
Publicat in Wed 29 June 2022 in howto • Tagged with terraform • Scrie un comentariu
In a doua parte am prezentat configurarea unui Security Group in AWS.
Acum vom lansa si o instanta EC2. Inainte vom incarca o cheie publica pentru a ne permite accessul SSH:
resource "aws_key_pair" "Cristi" {
key_name = "Cristi public"
public_key = "ssh-rsa AAAAB3N ..... == cristi@cristi"
}
resource "aws_instance" "ter-worker" {
ami = "ami-05b44291810dff0b2"
instance_type = "t3.micro …