Prepare group 1 Osaka Terraform tests

This commit is contained in:
2026-11-14 16:33:14 +09:00
parent a1453034c3
commit d52e65383d
7 changed files with 180 additions and 2 deletions
@@ -19,6 +19,12 @@ variable "protect_from_destroy" {
default = true
}
variable "force_destroy_unprotected_buckets" {
description = "Allow Terraform to delete objects while destroying unprotected test buckets. Protected production buckets always keep force_destroy=false."
type = bool
default = false
}
variable "bucket_names" {
description = "Optional existing bucket names. Omitted values are derived from name_prefix for isolated tests."
type = object({
@@ -33,11 +39,28 @@ variable "trail_name" {
type = string
}
variable "cloudtrail_is_multi_region" {
description = "Whether CloudTrail records events from all AWS Regions. Production keeps this true; isolated regional tests set it false."
type = bool
default = true
}
variable "kms_alias_name" {
description = "Alias of the customer managed Vault key."
type = string
}
variable "kms_deletion_window_in_days" {
description = "Waiting period before permanent KMS key deletion. Isolated tests use the minimum seven days."
type = number
default = 30
validation {
condition = var.kms_deletion_window_in_days >= 7 && var.kms_deletion_window_in_days <= 30
error_message = "kms_deletion_window_in_days must be between 7 and 30."
}
}
variable "log_groups" {
description = "CloudWatch log groups and their retention in days. Null means never expire."
type = map(object({