vars.tf 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. variable "source_sqs" {
  2. type = object({
  3. arn = string
  4. url = string
  5. visibility_timeout_seconds = number
  6. message_retention_seconds = number
  7. max_message_size = number
  8. redrive_policy = string
  9. })
  10. description = "The aws_sqs_queue object of the source"
  11. }
  12. #variable "deadletter" {
  13. # type = object({
  14. # arn = string
  15. # url = string
  16. # })
  17. # description = "The deadletter queue. Redriving puts them back through the fair queueing."
  18. #
  19. variable "sqs_prefix" {
  20. type = string
  21. description = "Prefix for the fair-queued queues"
  22. }
  23. variable "hash_jsonpath" {
  24. description = "Hash the value at this JSONPath from the source message to determine the destination queue. NOTE: If this fails to locate a string, fails to parse, or is set to `$`, fair queueing will default to a random queue assignment."
  25. type = string
  26. default = "$"
  27. }
  28. variable "num_queues" {
  29. type = number
  30. description = "How many fair queues to create."
  31. default = 16
  32. }
  33. variable "debug" {
  34. type = bool
  35. description = "Enable debug logging"
  36. default = false
  37. }
  38. variable "botodebug" {
  39. type = bool
  40. description = "Enable BOTO3 debug logging"
  41. default = false
  42. }
  43. variable "tags" {
  44. type = map(any)
  45. description = "Tags to apply to resources."
  46. default = {}
  47. }