Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 25, 2020 09:22
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 velotiotech/9acba1e2864d2a34cd488782f0068487 to your computer and use it in GitHub Desktop.
Save velotiotech/9acba1e2864d2a34cd488782f0068487 to your computer and use it in GitHub Desktop.
default VPC for reference
# 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