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
62 lines
1.4 KiB
HCL
62 lines
1.4 KiB
HCL
################################################################################
|
|
# Tenant Budget - Input Variables
|
|
################################################################################
|
|
|
|
variable "name" {
|
|
type = string
|
|
description = "Tenant/budget name"
|
|
}
|
|
|
|
variable "budget_limit" {
|
|
type = number
|
|
description = "Monthly budget limit in USD"
|
|
}
|
|
|
|
variable "alert_thresholds" {
|
|
type = list(number)
|
|
default = [50, 80, 100]
|
|
description = "Percentage thresholds for actual spend alerts"
|
|
}
|
|
|
|
variable "enable_forecasted_alerts" {
|
|
type = bool
|
|
default = true
|
|
description = "Enable forecasted spend alerts"
|
|
}
|
|
|
|
variable "forecasted_thresholds" {
|
|
type = list(number)
|
|
default = [100]
|
|
description = "Percentage thresholds for forecasted spend alerts"
|
|
}
|
|
|
|
variable "notification_emails" {
|
|
type = list(string)
|
|
default = []
|
|
description = "Email addresses for budget alerts"
|
|
}
|
|
|
|
variable "create_sns_topic" {
|
|
type = bool
|
|
default = true
|
|
description = "Create SNS topic for alerts"
|
|
}
|
|
|
|
variable "sns_topic_arn" {
|
|
type = string
|
|
default = null
|
|
description = "Existing SNS topic ARN (if not creating)"
|
|
}
|
|
|
|
variable "cost_filter_tags" {
|
|
type = map(string)
|
|
default = {}
|
|
description = "Cost allocation tags to filter by"
|
|
}
|
|
|
|
variable "tags" {
|
|
type = map(string)
|
|
default = {}
|
|
description = "Tags to apply to resources"
|
|
}
|