diff --git a/project6/base.tf b/project6/base.tf new file mode 100644 index 0000000..419ca2e --- /dev/null +++ b/project6/base.tf @@ -0,0 +1,15 @@ +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" + } +}