variables.tf 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. variable "bucket_name" {
  2. default = null
  3. description = "Name to apply to bucket (use `bucket_name` or `bucket_suffix`)"
  4. type = string
  5. }
  6. variable "bucket_suffix" {
  7. default = "default"
  8. description = "Suffix to apply to the bucket (use `bucket_name` or `bucket_suffix`). When using `bucket_suffix`, the bucket name will be `[account_id]-[region]-s3logging-[bucket_suffix]."
  9. type = string
  10. }
  11. variable "lifecycle_rules" {
  12. default = []
  13. description = "lifecycle rules to apply to the bucket"
  14. type = list(object(
  15. {
  16. id = string
  17. enabled = bool
  18. prefix = string
  19. expiration = number
  20. noncurrent_version_expiration = number
  21. abort_incomplete_multipart_upload_days = number
  22. }))
  23. }
  24. variable "tags" {
  25. default = {}
  26. description = "Tags to add to supported resources"
  27. type = map(string)
  28. }
  29. variable "versioning_enabled" {
  30. default = true
  31. description = "Whether or not to use versioning on the bucket. This can be useful for audit purposes since objects in a logging bucket should not be updated."
  32. type = bool
  33. }