Terraform - Buckets 추가
This commit is contained in:
46
terraform/buckets/variables.tf
Normal file
46
terraform/buckets/variables.tf
Normal file
@@ -0,0 +1,46 @@
|
||||
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 = "Enabled"
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user