Skip to content

Instantly share code, notes, and snippets.

View overskylab's full-sized avatar

Teerawat Namsricharoensuk overskylab

View GitHub Profile
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
name = "my-vpc"
cidr = "10.0.0.0/16"
azs = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
}
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"

Keybase proof

I hereby claim:

  • I am overskylab on github.
  • I am overskylab (https://keybase.io/overskylab) on keybase.
  • I have a public key ASDC2zcVVe_9DXfHPh0CkwNmztCqfHO7b7JdSqzyeXTUpwo

To claim this, I am signing this object: