=============================
A Terraform module to provide only VPC (without subnets) in AWS.
If you want to create public and private subnets using single module you can use tf_aws_vpc module.
cidr
- VPC CIDRname
- Name (optional)enable_dns_support
- should be true if you want to use private DNS within the VPC (optional)enable_dns_hostnames
- should be true if you want to use private DNS within the VPC (optional)tags
- dictionary of tags that will be added to resources created by the module
module "vpc" {
source = "github.com/terraform-community-modules/tf_aws_vpc_only"
name = "production"
cidr = "10.0.0.0/16"
enable_dns_support = true
enable_dns_hostnames = true
tags {
"Terraform" = "true"
"Environment" = "${var.environment}"
}
}
vpc_id
- VPC idvpc_cidr
- VPC CIDR blockvpc_default_security_group
- The ID of the security group created by default on VPC creation
Originally created and maintained by hashicorp/atlas-examples. Hijacked by Anton Babenko.
Apache 2 Licensed. See LICENSE for full details.