Skip to content

Instantly share code, notes, and snippets.

@timo-boehm
Created February 19, 2021 14:16
Show Gist options
  • Save timo-boehm/226ed288bcdcc26a31f713a325fe7ab5 to your computer and use it in GitHub Desktop.
Save timo-boehm/226ed288bcdcc26a31f713a325fe7ab5 to your computer and use it in GitHub Desktop.
variable "vpc_id" {
type = string
description = "ID of VPC where all resources will be created in"
default = "this-would-be-a-real-id"
}
resource "aws_subnet" "main" {
vpc_id = var.vpc_id
cidr_block = "10.0.1.0/24"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment