Giter Club home page Giter Club logo

tf-aws-vpc's Introduction

Preparing the environment

  1. Clone the repository using git
git clone the-repository/project
  1. Change to the project directory
cd project/
  1. Init the Terraform project
terraform init
  1. Validate the configurations files
terraform validate
  1. Lint the project

Installation guide for tflint -> https://github.com/terraform-linters/tflint

tflint
  1. Validate for security best practices

Installation guide for tfsec -> https://aquasecurity.github.io/tfsec/v1.28.1/guides/installation/

tfsec
  1. Give some format (just in case)
terraform fmt

Providers

Name Version
aws = 5.3.0

Requirements

Name Version
terraform ~> 1.5.0
aws = 5.3.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_group.flowlogs_log_group resource
aws_ec2_transit_gateway_vpc_attachment.vpc_attachment resource
aws_eip.nat_eip resource
aws_flow_log.flowlogs resource
aws_iam_role.flowlogs_role resource
aws_internet_gateway.igw resource
aws_kms_alias.key_alias resource
aws_kms_key.logs_kms_key resource
aws_nat_gateway.nat_gateway resource
aws_route_table.private resource
aws_route_table.public resource
aws_route_table_association.private_subnet_association resource
aws_route_table_association.public_subnet_association resource
aws_security_group.vpc_endpoint_sg resource
aws_subnet.private resource
aws_subnet.public resource
aws_vpc.main resource
aws_vpc_endpoint.dynamodb_vpc_endpoint resource
aws_vpc_endpoint.ec2_vpc_endpoint resource
aws_vpc_endpoint.s3_vpc_endpoint resource
aws_vpc_endpoint.ssm_vpc_endpoint resource
aws_vpc_endpoint.ssmmessages_vpc_endpoint resource
aws_availability_zones.available data source
aws_caller_identity.current data source
aws_iam_policy_document.cw_logs_kms_policy data source

Inputs

Name Description Type Default Required
additional_cidrs Additional CIDR blocks for routing (comma-separated) string "" no
aws_region AWS region where the VPC will be deployed string "us-east-1" no
az_count Number of availability zones number 2 no
dynamodb_vpc_endpoint_enabled Flag to enable/disable DynamoDB VPC Endpoint bool true no
ec2_vpc_endpoint_enabled Flag to enable/disable EC2 VPC Endpoint bool true no
environment Deployment Environment string "sandbox" no
nat_gateway_count Number of NAT Gateways number 1 no
project_name Name of the project string "my-projec-1" no
public_subnet_mask_bits Number of bits for subnet mask number 10 no
s3_vpc_endpoint_enabled Flag to enable/disable S3 VPC Endpoint bool true no
ssm_vpc_endpoint_enabled Flag to enable/disable SSM VPC Endpoint bool false no
ssmmessages_vpc_endpoint_enabled Flag to enable/disable SSM Messages VPC Endpoint bool false no
subnet_layers Map of subnet layers to their corresponding newbits to extend the VPC CIDR block map(number)
{
"app": 7,
"database": 12,
"dmz": 12
}
no
tags Tags to apply to AWS resources map(string)
{
"owner": "Frankin Garcia"
}
no
transit_gateway_id ID of the Transit Gateway string "tgw-1234567890abcdef1" no
use_nat_gateway Flag to enable/disable NAT Gateways bool true no
use_transit_gateway Flag to enable/disable Transit Gateway bool false no
vpc_cidr_block CIDR block for the VPC string "10.0.0.0/16" no

Outputs

Name Description
private_subnet_ids Private subnets IDs by layer
private_subnets_cidr Private subnets CIDRs by layer
public_subnet_cidrs Public subnets CIDRs
public_subnet_ids Public subnets IDs
vpc_cidr_block VPC CIDR
vpc_id VPC ID

tf-aws-vpc's People

Contributors

kenkogeek avatar

Stargazers

 avatar

Watchers

 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.