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
45 lines
849 B
HCL
45 lines
849 B
HCL
variable "tenant" {
|
|
description = "Tenant identifier"
|
|
type = string
|
|
}
|
|
|
|
variable "environment" {
|
|
description = "Environment (prod, staging, dev)"
|
|
type = string
|
|
}
|
|
|
|
variable "vpc_id" {
|
|
description = "VPC ID for the security groups"
|
|
type = string
|
|
}
|
|
|
|
variable "create_web_sg" {
|
|
description = "Create web tier security group"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "create_app_sg" {
|
|
description = "Create app tier security group"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "create_db_sg" {
|
|
description = "Create database tier security group"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "app_port" {
|
|
description = "Application port"
|
|
type = number
|
|
default = 8080
|
|
}
|
|
|
|
variable "db_port" {
|
|
description = "Database port"
|
|
type = number
|
|
default = 5432
|
|
}
|