- Clone the repository using
git
git clone the-repository/project
- Change to the project directory
cd project/
- Init the Terraform project
terraform init
- Validate the configurations files
terraform validate
- Lint the project
Installation guide for tflint -> https://github.com/terraform-linters/tflint
tflint
- Validate for security best practices
Installation guide for tfsec -> https://aquasecurity.github.io/tfsec/v1.28.1/guides/installation/
tfsec
- Give some format (just in case)
terraform fmt
Name | Version |
---|---|
aws | = 5.3.0 |
Name | Version |
---|---|
terraform | ~> 1.5.0 |
aws | = 5.3.0 |
No modules.
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) |
{ |
no |
tags | Tags to apply to AWS resources | map(string) |
{ |
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 |
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 |