Skip to content

Instantly share code, notes, and snippets.

@goofballLogic
Created November 18, 2021 10:46
Show Gist options
  • Save goofballLogic/1e6d6902296469fa0c482f51b7bb90a1 to your computer and use it in GitHub Desktop.
Save goofballLogic/1e6d6902296469fa0c482f51b7bb90a1 to your computer and use it in GitHub Desktop.
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