-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
65 lines (58 loc) · 2.83 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
variable "account_id" {
description = "AWS Account ID"
type = string
}
variable "region" {
description = "AWS Region"
type = string
default = "us-east-1"
}
variable "default_filter_policy" {
description = "The default filter policy to apply to subscriptions. This is a map of attribute name/value pairs. The default is an empty map, which matches all messages."
type = map(list(string))
default = {}
}
variable "queues" {
description = "A list of maps describing the queues to create. Each map must contain a name key. The following keys are optional: delay_seconds, max_message, message_retention_seconds, receive_wait_time_seconds, max_receive_count, topics_to_subscribe."
type = list(object({
name = string
create_queue = optional(bool, true)
service = optional(string, null)
delay_seconds = optional(number, null)
max_message = optional(number, null)
message_retention_seconds = optional(number, null)
receive_wait_time_seconds = optional(number, null)
max_receive_count = optional(number, null)
topics_to_subscribe = list(object({
name = string
use_prefix = optional(bool, true)
filter_policy = optional(map(list(string)))
content_based_deduplication = optional(bool, false)
create_topic = optional(bool, true)
}))
}))
default = []
}
variable "topics" {
description = "A list of maps describing the topics to create. Each map must contain a name key. The following keys are optional: display_name, kms_master_key_id, policy, delivery_policy, sqs_success_feedback_sample_rate, sqs_failure_feedback_sample_rate, sqs_max_message_size, sqs_message_retention_seconds, sqs_receive_wait_time_seconds, sqs_visibility_timeout_seconds, sqs_delay_seconds, fifo_topic, content_based_deduplication, application_success_feedback_sample_rate, application_failure_feedback_sample_rate, application_max_message_size, application_message_retention_seconds, application_delivery_policy, application_receive_wait_time_seconds, application_visibility_timeout_seconds, application_delay_seconds, application_success_feedback_role_arn, application_failure_feedback_role_arn, application_success_feedback_target_arn, application_failure_feedback_target_arn, topics_to_subscribe."
type = list(object({
name = string
content_based_deduplication = optional(bool, false)
}))
default = []
}
variable "default_tags" {
description = "A map of tags to assign to all resources."
type = map(string)
default = {}
}
variable "resource_prefix" {
description = "A prefix to add to all resource names."
type = string
default = ""
}
variable "fifo" {
description = "Boolean designating a FIFO topic and queue. If not set, it defaults to false making it standard."
type = bool
default = false
}