Created
June 25, 2020 09:22
-
-
Save velotiotech/9acba1e2864d2a34cd488782f0068487 to your computer and use it in GitHub Desktop.
default VPC for reference
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
# lookup for the "default" VPC | |
data "aws_vpc" "default_vpc" { | |
default = true | |
} | |
# subnet list in the "default" VPC | |
# The "default" VPC has all "public subnets" | |
data "aws_subnet_ids" "default_public" { | |
vpc_id = "${data.aws_vpc.default_vpc.id}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment