vars.tf 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. variable "name" {
  2. description = "Name of the S3 bucket."
  3. type = string
  4. }
  5. variable "extra_accounts" {
  6. description = "List of account numbers that also need access"
  7. type = list(string)
  8. default = [ ]
  9. }
  10. variable "encryption" {
  11. description = "Encryption method. Either SSE-KMS or SSE-S3. The latter is easier for cross-account sharing with customers."
  12. type = string
  13. default = "SSE-KMS"
  14. validation {
  15. condition = var.encryption == "SSE-KMS" || var.encryption == "SSE-S3"
  16. error_message = "The encryption type must be 'SSE-KMS' or 'SSE-S3'."
  17. }
  18. }
  19. variable "tags" {
  20. description = "Tags for the bucket and kms key."
  21. type = map
  22. }
  23. # ----------------------------------
  24. # Below this line are variables inherited from higher levels, so they
  25. # do not need to be explicitly passed to this module.
  26. variable "standard_tags" {
  27. type = map
  28. }
  29. variable "aws_account_id" {
  30. type = string
  31. }
  32. variable "account_list" {
  33. type = list
  34. }
  35. # ----------------------------------
  36. # Required for remote state, though they can be used elsewhere
  37. variable "remote_state_bucket" {
  38. type = string
  39. }
  40. variable "aws_region" {
  41. type = string
  42. }
  43. variable "aws_partition" {
  44. type = string
  45. }
  46. variable "common_services_account" {
  47. type = string
  48. }
  49. variable "common_profile" {
  50. type = string
  51. }