|
| 1 | +## |
| 2 | +# Basic Required Variables for tfscaffold Modules |
| 3 | +## |
| 4 | + |
| 5 | +variable "project" { |
| 6 | + type = string |
| 7 | + description = "The name of the tfscaffold project" |
| 8 | +} |
| 9 | + |
| 10 | +variable "environment" { |
| 11 | + type = string |
| 12 | + description = "The name of the tfscaffold environment" |
| 13 | +} |
| 14 | + |
| 15 | +variable "component" { |
| 16 | + type = string |
| 17 | + description = "The name of the tfscaffold component" |
| 18 | +} |
| 19 | + |
| 20 | +variable "aws_account_id" { |
| 21 | + type = string |
| 22 | + description = "The AWS Account ID (numeric)" |
| 23 | +} |
| 24 | + |
| 25 | +variable "region" { |
| 26 | + type = string |
| 27 | + description = "The AWS Region" |
| 28 | +} |
| 29 | + |
| 30 | +## |
| 31 | +# tfscaffold variables specific to this module |
| 32 | +## |
| 33 | + |
| 34 | +variable "module" { |
| 35 | + type = string |
| 36 | + description = "The variable encapsulating the name of this module" |
| 37 | + default = "sqs" |
| 38 | +} |
| 39 | + |
| 40 | +variable "default_tags" { |
| 41 | + type = map(string) |
| 42 | + description = "A map of default tags to apply to all taggable resources within the component" |
| 43 | + default = {} |
| 44 | +} |
| 45 | + |
| 46 | +## |
| 47 | +# Variables specific to this module |
| 48 | +## |
| 49 | + |
| 50 | +variable "name" { |
| 51 | + type = string |
| 52 | + description = "Name of the SQS Queue" |
| 53 | +} |
| 54 | + |
| 55 | +variable "sqs_kms_key_arn" { |
| 56 | + type = string |
| 57 | + description = "ARN of the KMS key to encrypt SQS queue messages" |
| 58 | +} |
| 59 | + |
| 60 | +variable "sns_source_arn" { |
| 61 | + type = string |
| 62 | + description = "ARN of an sns resource allowed to send to this resource" |
| 63 | + default = null |
| 64 | +} |
| 65 | + |
| 66 | +variable "allowed_arns" { |
| 67 | + description = "A list of AWS account IDs allowed to access this resource" |
| 68 | + type = list(any) |
| 69 | + default = null |
| 70 | +} |
| 71 | + |
| 72 | +variable "message_retention_seconds" { |
| 73 | + description = "The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days)" |
| 74 | + type = number |
| 75 | + default = null |
| 76 | +} |
| 77 | + |
| 78 | +variable "visibility_timeout_seconds" { |
| 79 | + description = "The visibility timeout for the queue. An integer from 0 to 43200 (12 hours)" |
| 80 | + type = number |
| 81 | + default = 300 |
| 82 | +} |
| 83 | + |
| 84 | +variable "fifo_queue" { |
| 85 | + description = "Boolean designating a FIFO queue" |
| 86 | + type = bool |
| 87 | + default = false |
| 88 | +} |
| 89 | + |
| 90 | +variable "content_based_deduplication" { |
| 91 | + description = "Enables content-based deduplication for FIFO queues" |
| 92 | + type = bool |
| 93 | + default = false |
| 94 | +} |
| 95 | + |
| 96 | +variable "kms_data_key_reuse_period_seconds" { |
| 97 | + description = "The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours)" |
| 98 | + type = number |
| 99 | + default = 300 |
| 100 | +} |
| 101 | + |
| 102 | +variable "max_message_size" { |
| 103 | + description = "The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB)" |
| 104 | + type = number |
| 105 | + default = 262144 |
| 106 | +} |
| 107 | + |
| 108 | +variable "create_dlq" { |
| 109 | + description = "Create a DLQ" |
| 110 | + type = bool |
| 111 | + default = false |
| 112 | +} |
0 commit comments