47 lines
1.1 KiB
HCL
47 lines
1.1 KiB
HCL
variable "aws_region" {
|
|
default = "ap-northeast-2"
|
|
}
|
|
|
|
variable "buckets" {
|
|
type = map(object({
|
|
object_ownership = string
|
|
public_access = bool
|
|
versioning = string
|
|
lifecycle = object({
|
|
status = string
|
|
noncurrent_days = optional(number)
|
|
expiration_days = optional(number)
|
|
})
|
|
}))
|
|
default = {
|
|
dsk-alert-images = {
|
|
object_ownership = "BucketOwnerPreferred"
|
|
public_access = true
|
|
versioning = "Enabled"
|
|
lifecycle = {
|
|
status = "Disabled"
|
|
noncurrent_days = 1
|
|
expiration_days = 7
|
|
}
|
|
}
|
|
dsk-airflow = {
|
|
object_ownership = "BucketOwnerEnforced"
|
|
public_access = false
|
|
versioning = "Enabled"
|
|
lifecycle = {
|
|
status = "Enabled"
|
|
noncurrent_days = 1
|
|
expiration_days = 7
|
|
}
|
|
}
|
|
dsk-metering = {
|
|
object_ownership = "BucketOwnerEnforced"
|
|
public_access = false
|
|
versioning = "Disabled"
|
|
lifecycle = {
|
|
status = "Disabled"
|
|
}
|
|
}
|
|
}
|
|
}
|