📌  相关文章
📜  如何将密钥对添加到 ec2 实例 terraform - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:29.279000             🧑  作者: Mango

代码示例1
#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"
  }