Skip to content

Instantly share code, notes, and snippets.

@khushi20218
Created September 6, 2020 13:38
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 khushi20218/2aebbe9640f42ccb580fa2a676b0478b to your computer and use it in GitHub Desktop.
Save khushi20218/2aebbe9640f42ccb580fa2a676b0478b to your computer and use it in GitHub Desktop.
# VPC data soruce
data "aws_vpc" "def_vpc" {
default = true
}
# Subnet data source
data "aws_subnet_ids" "vpc_sub" {
vpc_id = data.aws_vpc.def_vpc.id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment