Use account regional namespace for access logs
This commit is contained in:
@@ -40,6 +40,17 @@ variable "access_log_bucket_name" {
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "access_log_bucket_namespace" {
|
||||
description = "Namespace for the S3 server access log destination bucket. Isolated tests use the global namespace by default; production can opt in to account-regional."
|
||||
type = string
|
||||
default = "global"
|
||||
|
||||
validation {
|
||||
condition = contains(["account-regional", "global"], var.access_log_bucket_namespace)
|
||||
error_message = "access_log_bucket_namespace must be account-regional or global."
|
||||
}
|
||||
}
|
||||
|
||||
variable "trail_name" {
|
||||
description = "CloudTrail trail name."
|
||||
type = string
|
||||
|
||||
Reference in New Issue
Block a user