2. Modify Resources
#####################
# Modifying EC2 Instance Tag
#####################
resource "aws_instance" "my-first-server" {
ami = "ami-052efd3df9dad4825"
instance_type = "t2.micro"
tags = {
Name = "ubuntu"
}
}Last updated