Slide 23
Slide 23 text
resource "aws_instance" "staging_web" {
ami = "${lookup(var.staging_amis, var.region)}"
instance_type = "t2.micro"
security_groups = [
"default",
"${aws_security_group.staging_web.name}"
]
iam_instance_profile = "staging-ec2"
tags {
Name = "staging_web"
Roles = "web,db"
Stages = "staging"
}
}