vars.tf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. variable "name" {
  2. description = "Name of the S3 bucket."
  3. type = string
  4. }
  5. variable "customer_access" {
  6. description = "True if customer accounts should get access"
  7. type = bool
  8. default = false
  9. }
  10. variable "extra_accounts" {
  11. description = "List of account numbers that also need access"
  12. type = list(string)
  13. default = []
  14. }
  15. variable "encryption" {
  16. description = "Encryption method. Either SSE-KMS or SSE-S3. The latter is easier for cross-account sharing with customers."
  17. type = string
  18. default = "SSE-KMS"
  19. validation {
  20. condition = var.encryption == "SSE-KMS" || var.encryption == "SSE-S3"
  21. error_message = "The encryption type must be 'SSE-KMS' or 'SSE-S3'."
  22. }
  23. }
  24. variable "tags" {
  25. description = "Tags for the bucket and kms key."
  26. type = map(any)
  27. }
  28. # ----------------------------------
  29. # Below this line are variables inherited from higher levels, so they
  30. # do not need to be explicitly passed to this module.
  31. # ----------------------------------
  32. # Required for remote state, though they can be used elsewhere
  33. variable "remote_state_bucket" {
  34. type = string
  35. }