Created
November 18, 2021 10:46
-
-
Save goofballLogic/1e6d6902296469fa0c482f51b7bb90a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_version = ">= 0.12" | |
} | |
provider "aws" { | |
region = "eu-west-1" | |
} | |
resource "aws_instance" "web" { | |
tags = { Subject = "terraform-demo" } | |
instance_type = "t2.micro" | |
ami = var.aws_amis[var.aws_region] | |
subnet_id = aws_subnet.our_subnet.id | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment