-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
113 lines (93 loc) · 4.44 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
113
# ---------------------------------------------------------------------------------------------------------------------
# Misc
# ---------------------------------------------------------------------------------------------------------------------
variable "name_preffix" {
description = "Name preffix for resources on AWS"
}
# ---------------------------------------------------------------------------------------------------------------------
# AWS CREDENTIALS AND REGION
# ---------------------------------------------------------------------------------------------------------------------
variable "profile" {
description = "AWS API key credentials to use"
}
variable "region" {
description = "AWS Region the infrastructure is hosted in"
}
# ---------------------------------------------------------------------------------------------------------------------
# CLOUDWATCH EVENT RULE
# ---------------------------------------------------------------------------------------------------------------------
variable "event_rule_name" {
description = "The rule's name."
}
variable "event_rule_schedule_expression" {
description = "(Required, if event_pattern isn't specified) The scheduling expression. For example, cron(0 20 * * ? *) or rate(5 minutes)."
default = null
}
variable "event_rule_event_pattern" {
description = "(Required, if schedule_expression isn't specified) Event pattern described a JSON object. See full documentation of CloudWatch Events and Event Patterns for details."
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 "ecs_cluster_arn" {
description = "The ECS Cluster where the scheduled task will run"
}
variable "event_target_ecs_target_subnets" {
description = "The subnets associated with the task or service."
type = list
}
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 "ecs_execution_task_role_arn" {
description = "(Required) The task definition execution role"
}
variable "event_target_target_id" {
description = "(Optional) The unique target assignment ID. If missing, will generate a random, unique id."
default = null
}
variable "event_target_input" {
description = "(Optional) Valid JSON text passed to the target."
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."
default = null
}
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
default = []
}
variable "event_target_ecs_target_assign_public_ip" {
description = "(Optional) Assign a public IP address to the ENI (Fargate launch type only). Valid values are true or false. Default false."
type = bool
default = false
}
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_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. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see AWS Fargate Platform Versions. Default to LATEST"
default = "LATEST"
}
variable "event_target_ecs_target_group" {
description = "(Optional) Specifies an ECS task group for the task. The maximum length is 255 characters."
default = null
}