Answers for "how to add key pair to ec2 instance terraform"

0

how to add key pair to ec2 instance terraform

#add the key_name which are stored into your AWS account --> EC2--> Network & Security-->Key Pairs
resource "aws_instance" "ec2" {
  ami = "ami-0c1a7f89451184c8b"
  instance_type = "t2.micro"
  key_name = "terraform"
  }
Posted by: Guest on May-27-2021

Code answers related to "how to add key pair to ec2 instance terraform"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language