mirror of
https://github.com/ghndrx/terraform-foundation.git
synced 2026-02-10 06:45:06 +00:00
Enterprise-grade multi-tenant AWS cloud foundation. Modules: - GitHub OIDC for keyless CI/CD authentication - IAM account settings and security baseline - AWS Config Rules for compliance - ABAC (Attribute-Based Access Control) - SCPs (Service Control Policies) Features: - Multi-account architecture - Cost optimization patterns - Security best practices - Comprehensive documentation Tech: Terraform, AWS Organizations, IAM Identity Center
1.6 KiB
1.6 KiB
vpc-lite
VPC Lite Module
Usage
module "vpc_lite" {
source = "../modules/vpc-lite"
# Required variables
name = ""
# Optional: see variables.tf for all options
}
Requirements
| Name | Version |
|---|---|
| terraform | >= 1.5.0 |
| aws | >= 5.0 |
Inputs
| Name | Description | Type | Required |
|---|---|---|---|
| name | VPC name prefix | string |
yes |
| cidr | VPC CIDR block | string |
no |
| azs | Availability zones (auto-detected if empty) | list(string) |
no |
| az_count | Number of AZs to use (if azs not specified) | number |
no |
| nat_mode | NAT mode: none, instance, or gateway | string |
no |
| create_private_subnets | Create private subnets (set false for public-only) | bool |
no |
| enable_vpc_endpoints | Create VPC endpoints for AWS services (recommended when nat_... | bool |
no |
| vpc_endpoint_services | Gateway endpoints to create (s3, dynamodb) | list(string) |
no |
| vpc_endpoint_interfaces | Interface endpoints to create (ecr.api, ecr.dkr, logs, ssm, ... | list(string) |
no |
| enable_flow_logs | Enable VPC Flow Logs | bool |
no |
| flow_log_retention_days | Flow log retention (shorter = cheaper) | number |
no |
| tags | map(string) |
no |
Outputs
| Name | Description |
|---|---|
| vpc_id | |
| vpc_cidr | |
| public_subnet_ids | |
| private_subnet_ids | |
| nat_mode | NAT mode used |
| nat_ip | NAT public IP (if applicable) |
| cost_estimate | Estimated monthly cost for NAT |
| internet_access | |
| vpc_endpoints |
License
Apache 2.0 - See LICENSE for details.