Created
August 8, 2019 08:53
-
-
Save ismail0352/c35cd4bb1f82ced67c53418e20d5dd67 to your computer and use it in GitHub Desktop.
default VPC for reference
This file contains hidden or 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