-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
112 lines (92 loc) · 4.31 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#------------------------------------------------------------------------------
# Misc
#------------------------------------------------------------------------------
variable "name_prefix" {
description = "Name prefix for resources on AWS"
}
#------------------------------------------------------------------------------
# CLOUDWATCH EVENT RULE
#------------------------------------------------------------------------------
variable "event_rule_name" {
description = "The name of the rule."
}
variable "event_rule_schedule_expression" {
description = "(Optional) The scheduling expression. For example, cron(0 20 * * ? *) or rate(5 minutes). At least one of event_rule_schedule_expression or event_rule_event_pattern is required. Can only be used on the default event bus."
default = null
}
variable "event_rule_event_bus_name" {
description = "(Optional) The event bus to associate with this rule. If you omit this, the default event bus is used."
default = null
}
variable "event_rule_event_pattern" {
description = "(Optional) The event pattern described a JSON object. At least one of schedule_expression or event_pattern is required."
default = null
}
variable "event_rule_description" {
description = "(Optional) The description of the rule."
default = null
}
variable "event_rule_role_arn" {
description = "(Optional) The Amazon Resource Name (ARN) associated with the role that is used for target invocation."
default = null
}
variable "event_rule_is_enabled" {
description = "(Optional) Whether the rule should be enabled (defaults to true)."
type = bool
default = true
}
#------------------------------------------------------------------------------
# CLOUDWATCH EVENT TARGET
#------------------------------------------------------------------------------
variable "event_target_target_id" {
description = "(Optional) The unique target assignment ID. If missing, will generate a random, unique id."
default = null
}
variable "ecs_cluster_arn" {
description = "The ECS Cluster where the scheduled task will run"
}
variable "event_target_input" {
description = "(Optional) Valid JSON text passed to the target. Conflicts with event_target_input_path."
default = null
}
variable "event_target_input_path" {
description = " (Optional) The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. Conflicts with event_target_input."
default = null
}
variable "ecs_execution_task_role_arn" {
description = "(Required) The task definition execution role. The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered."
}
variable "ecs_task_role_arn" {
description = "(Optional) The task definition role. The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered."
default = null
}
variable "event_target_ecs_target_group" {
description = "(Optional) Specifies an ECS task group for the task. The maximum length is 255 characters."
default = null
}
variable "event_target_ecs_target_platform_version" {
description = "(Optional) Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0. For more information about valid platform versions, see AWS Fargate Platform Versions. Default to LATEST"
default = "LATEST"
}
variable "event_target_ecs_target_task_count" {
description = "(Optional) The number of tasks to create based on the TaskDefinition. The default is 1."
type = number
default = 1
}
variable "event_target_ecs_target_task_definition_arn" {
description = "(Required) The ARN of the task definition to use if the event target is an Amazon ECS cluster."
}
variable "event_target_ecs_target_subnets" {
description = "The subnets associated with the task or service."
type = list(any)
}
variable "event_target_ecs_target_security_groups" {
description = "(Optional) The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used."
type = list(any)
default = null
}
variable "event_target_ecs_target_assign_public_ip" {
description = "(Optional) Assign a public IP address to the ENI. Default false."
type = bool
default = false
}