Skip to content

Instantly share code, notes, and snippets.

@nasum
Created April 17, 2019 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nasum/ee34b54a04f40f4ae83f5832e7f6e8c0 to your computer and use it in GitHub Desktop.
Save nasum/ee34b54a04f40f4ae83f5832e7f6e8c0 to your computer and use it in GitHub Desktop.
resource "aws_vpc" "vpc" {
cidr_block = "10.0.0.0/16"
instance_tenancy = "default"
}
resource "aws_subnet" "public_subnet" {
vpc_id = "${aws_vpc.vpc.id}"
cidr_block = "10.0.16.0/20"
availability_zone = "ap-northeast-1a"
}
provider "aws" {
region = "ap-northeast-1"
}
output "public_subnet_id" {
value = "${aws_subnet.public_subnet.id}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment