variables.tf 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. variable "allowed_account_ids" {
  2. default = []
  3. description = "Optional list of AWS Account IDs that are permitted to write to the bucket"
  4. type = list(string)
  5. }
  6. variable "bucket_name" {
  7. default = "" # can't dynamically build the bucket name here
  8. description = "Name of the S3 bucket to create. Defaults to {account_id}-{region}-cloudtrail."
  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 "logging_bucket" {
  25. description = "S3 bucket with suitable access for logging requests to the cloudtrail bucket"
  26. type = string
  27. }
  28. variable "region" {
  29. description = "Region to create KMS key in"
  30. type = string
  31. }
  32. variable "tags" {
  33. default = {}
  34. description = "Mapping of any extra tags you want added to resources"
  35. type = map(string)
  36. }