Skip to content

terraform-community-modules/tf_aws_vpc_only

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VPC (only) Terraform Module

=============================

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.

Module Input Variables

  • cidr - VPC CIDR
  • name - 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

Usage

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}"
  }
}

Outputs

  • vpc_id - VPC id
  • vpc_cidr - VPC CIDR block
  • vpc_default_security_group - The ID of the security group created by default on VPC creation

Authors

Originally created and maintained by hashicorp/atlas-examples. Hijacked by Anton Babenko.

License

Apache 2 Licensed. See LICENSE for full details.

About

A Terraform module to provide only VPC (without subnets) in AWS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages