Created
April 17, 2019 11:59
-
-
Save nasum/ee34b54a04f40f4ae83f5832e7f6e8c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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