forked from damacus/terraform-aws-sqs-with-dlq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
81 lines (66 loc) · 2.47 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
variable "name" {
description = "This is the human-readable name of the queue. If omitted, Terraform will assign a random name."
type = string
}
variable "message_retention_seconds" {
description = "The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days)"
type = number
default = null
}
variable "visibility_timeout_seconds" {
description = "The visibility timeout for the queue. An integer from 0 to 43200 (12 hours)"
type = number
default = null
}
variable "fifo_queue" {
description = "Boolean designating a FIFO queue"
type = bool
default = false
}
variable "content_based_deduplication" {
description = "Enables content-based deduplication for FIFO queues"
type = bool
default = true
}
variable "kms_master_key_id" {
description = "The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK"
type = string
default = "alias/aws/sqs"
}
variable "kms_data_key_reuse_period_seconds" {
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)"
type = number
default = 300
}
variable "max_message_size" {
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)"
type = number
default = 262144
}
variable "redrive_policy" {
description = "The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying maxReceiveCount, you must specify it as an integer (5), and not a string (\"5\")"
type = string
default = ""
}
variable "tags" {
description = "A mapping of tags to assign to all resources"
type = map(string)
default = {}
}
variable "alarm_sns_topic_arn" {
description = "ARN of the SNS topic for alarm notifactions"
default = null
}
variable "allowed_arns" {
description = "A list of AWS account IDs allowed to access this resource"
type = list
default = null
}
variable "allowed_items_max" {
description = "The maximum number of items allowed on the SQS queue before it triggers an alarm"
default = 50
}
locals {
account_id = data.aws_caller_identity.current.account_id
}
data "aws_caller_identity" "current" {}