1
0
Fork 0
terraform-training/project6/base.tf

16 lines
282 B
Terraform
Raw Normal View History

2020-05-13 12:49:55 +02:00
variable "doit" {}
provider "aws" {
region = "eu-west-2"
}
resource "aws_instance" "instance1" {
count = var.doit == "foo" ? 0 : 2
ami = "ami-01a6e31ac994bbc09"
instance_type = "t2.micro"
key_name = "cedric"
tags = {
Name = "cedric-instance1"
}
}