This module is used as a metadata service that given VPC marker (name) exposes attributes of that VPC as output resources which can be consumed by other Terraform resources, without having to duplicate the data_source
logic.
Minimum v3.55 of the AWS Provider
marker
- (string) REQUIRED - VPC marker / VPC name - used to resolve the VPC resource
module "metadata" {
source = "github.com/zegocover/techops-tf_aws_metadata"
marker = "productionvpc"
}
output "private_subnets" {
value = "${module.metadata.vpc_private_subnets}"
}
vpc_id
: The ID of the VPCvpc_cidr
: The CIDR block of the VPCvpc_public_subnets_ids
- A list of AWS Subnet IDs for all public subnets inside the VPCvpc_private_subnets_ids
- A list of AWS Subnet IDs for all private subnets inside the VPCvpc_public_route_table_ids
- A list of all public AWS Route Table IDsvpc_private_route_table_ids
- A list of all private AWS Route Table IDsvpc_public_subnets
- A list of CIDR blocks for all public subnets inside the VPCvpc_private_subnets
- A list of CIDR blocks for all private subnets inside the VPC