59 lines
1.6 KiB
Terraform
59 lines
1.6 KiB
Terraform
variable "region" {
|
|
description = "Primary AWS region for regional resources."
|
|
type = string
|
|
}
|
|
|
|
variable "name_prefix" {
|
|
description = "Prefix available to callers that create an isolated test copy."
|
|
type = string
|
|
}
|
|
|
|
variable "account_id" {
|
|
description = "AWS account ID used to construct existing policies and ARNs."
|
|
type = string
|
|
}
|
|
|
|
variable "protect_from_destroy" {
|
|
description = "Protect stateful resources from destroy. prod は true 固定。既存 workspace で true→false に反転しない。"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "bucket_names" {
|
|
description = "Optional existing bucket names. Omitted values are derived from name_prefix for isolated tests."
|
|
type = object({
|
|
cloudtrail = optional(string)
|
|
flowlogs = optional(string)
|
|
})
|
|
default = {}
|
|
}
|
|
|
|
variable "trail_name" {
|
|
description = "CloudTrail trail name."
|
|
type = string
|
|
}
|
|
|
|
variable "kms_alias_name" {
|
|
description = "Alias of the customer managed Vault key."
|
|
type = string
|
|
}
|
|
|
|
variable "log_groups" {
|
|
description = "CloudWatch log groups and their retention in days. Null means never expire."
|
|
type = map(object({
|
|
name = string
|
|
retention_in_days = optional(number)
|
|
tags = optional(map(string), {})
|
|
}))
|
|
}
|
|
|
|
variable "billing_alarm_name" {
|
|
description = "CloudWatch billing alarm name in us-east-1."
|
|
type = string
|
|
}
|
|
|
|
variable "billing_alarm_action_arns" {
|
|
description = "Existing notification target ARNs for the billing alarm. The targets themselves are not managed by this module."
|
|
type = list(string)
|
|
}
|