GithubHelp home page GithubHelp logo

lawliet89 / terraform-aws-vpc-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from govtechsg/terraform-aws-vpc

0.0 2.0 0.0 22 KB

Opinionated Terraform Module for provisioning a VPC on AWS

License: Apache License 2.0

HCL 100.00%

terraform-aws-vpc-1's Introduction

terraform-aws-vpc

This is an opinionated Terraform Module for provisioning a VPC on AWS. It makes use of the community provided (extensive) module to provision a VPC on AWS.

In particular, it does the following:

  • Provisions (optional) public, private, database and intra subnets
  • One NAT gateway per AZ
  • Removes all default security group and ACL rules
  • Provides sane ACL rules for network access

Inputs

Name Description Type Default Required
additional_allowed_cidr_blocks Additional 'safe' CIDR blocks for internal traffic string <list> no
database_subnets List of CIDRs for database subnets string <list> no
eip_count Number of EIP for the gateways. This should be eqaual to the number of AZs if you have any private subnets string 3 no
elasticache_subnets Lsit of CIDRs for Elasticache subnets string <list> no
enable_dynamodb_endpoint Should be true if you want to provision a DynamoDB endpoint to the VPC string false no
enable_s3_endpoint Should be true if you want to provision an S3 endpoint to the VPC string false no
ephemeral_from Lower end of the port range for ephemeral traffic string 1024 no
ephemeral_to Lower end of the port range for ephemeral traffic string 65535 no
intra_subnets List of CIDRs for intra subnets string <list> no
private_subnets List of CIDRs for private subnets string <list> no
public_subnets List of CIDRs for public subnets string <list> no
redshift_subnets Lsit of CIDRs for Redshift subnets string <list> no
tags A map of tags to add to all resources string <map> no
vpc_cidr CIDR for the VPC string - yes
vpc_name Name of the VPC string - yes

Outputs

Name Description
database_acl_id ACL ID of the database subnets
elasticache_route_table_ids List of IDs of elasticache route tables
elasticache_subnet_group ID of elasticache subnet group
elasticache_subnet_group_name Name of elasticache subnet group
elasticache_subnets List of IDs of elasticache subnets
elasticache_subnets_cidr_blocks List of cidr_blocks of elasticache subnets
intra_acl_id ACL ID of the intra subnets
intra_subnets_cidr_blocks List of cidr_blocks of intra subnets
private_acl_id ACL ID of the private subnets
private_subnets_cidr_blocks List of cidr_blocks of private subnets
public_acl_id ACL ID of the public subnets
public_subnets_cidr_blocks List of cidr_blocks of public subnets
redshift_route_table_ids List of IDs of redshift route tables
redshift_subnet_group ID of redshift subnet group
redshift_subnets List of IDs of redshift subnets
redshift_subnets_cidr_blocks List of cidr_blocks of redshift subnets
vpc_azs The AZs in the region the VPC belongs to
vpc_cidr_block The CIDR block of the VPC
vpc_database_subnet_group ID of database subnet group
vpc_database_subnets List of IDs of database subnets
vpc_database_subnets_cidr_blocks List of cidr_blocks of database subnets
vpc_id The ID of the VPC
vpc_intra_subnets 'Intra' subnets for the VPC
vpc_nat_eip_ids EIP for the NAT gateway in the VPC
vpc_nat_eip_public Public address for the EIP on the NAT Gateway
vpc_private_route_table_ids List of IDs of private route tables
vpc_private_subnets Private subnets for the VPC
vpc_public_route_table_ids The IDs of the public route tables
vpc_public_subnets Public subnets for the VPC
vpc_region The region the VPC belongs to

terraform-aws-vpc-1's People

Contributors

binhoul avatar lawliet89 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.