Skip to content

Instantly share code, notes, and snippets.

@overskylab
Last active December 4, 2021 09:28
Show Gist options
  • Select an option

  • Save overskylab/808f5160f07bc0b791836acc957e5d05 to your computer and use it in GitHub Desktop.

Select an option

Save overskylab/808f5160f07bc0b791836acc957e5d05 to your computer and use it in GitHub Desktop.
medium-terraform-module
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
tags = {
Name = "my-vpc"
}
}
resource "aws_subnet" "main_1a" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.1.0/24"
}
resource "aws_subnet" "main_1b" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.2.0/24"
}
resource "aws_subnet" "main_3c" {
vpc_id = aws_vpc.main.id
cidr_block = "10.0.2.0/24"
}
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment