|
| 1 | +# --------------------------------------------------------------------------------------------------------------------- |
| 2 | +# Misc |
| 3 | +# --------------------------------------------------------------------------------------------------------------------- |
| 4 | +variable "name_preffix" { |
| 5 | + description = "Name preffix for resources on AWS" |
| 6 | +} |
| 7 | + |
| 8 | +# --------------------------------------------------------------------------------------------------------------------- |
| 9 | +# AWS CREDENTIALS AND REGION |
| 10 | +# --------------------------------------------------------------------------------------------------------------------- |
| 11 | +variable "profile" { |
| 12 | + description = "AWS API key credentials to use" |
| 13 | +} |
| 14 | + |
| 15 | +variable "region" { |
| 16 | + description = "AWS Region the infrastructure is hosted in" |
| 17 | +} |
| 18 | + |
| 19 | +# --------------------------------------------------------------------------------------------------------------------- |
| 20 | +# CLOUDWATCH EVENT RULE |
| 21 | +# --------------------------------------------------------------------------------------------------------------------- |
| 22 | +variable "event_rule_name" { |
| 23 | + description = "The rule's name." |
| 24 | +} |
| 25 | + |
| 26 | +variable "event_rule_description" { |
| 27 | + description = "(Optional) The description of the rule." |
| 28 | +} |
| 29 | + |
| 30 | +variable "event_rule_schedule_expression" { |
| 31 | + description = "(Required, if event_pattern isn't specified) The scheduling expression. For example, cron(0 20 * * ? *) or rate(5 minutes)." |
| 32 | +} |
| 33 | + |
| 34 | +variable "event_rule_event_pattern" { |
| 35 | + 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." |
| 36 | +} |
| 37 | + |
| 38 | +variable "event_rule_role_arn" { |
| 39 | + description = "(Optional) The Amazon Resource Name (ARN) associated with the role that is used for target invocation." |
| 40 | + default = "" |
| 41 | +} |
| 42 | + |
| 43 | +variable "event_rule_is_enabled" { |
| 44 | + description = "(Optional) Whether the rule should be enabled (defaults to true)." |
| 45 | + type = bool |
| 46 | + default = true |
| 47 | +} |
| 48 | + |
| 49 | +# --------------------------------------------------------------------------------------------------------------------- |
| 50 | +# CLOUDWATCH EVENT TARGET |
| 51 | +# --------------------------------------------------------------------------------------------------------------------- |
| 52 | +variable "ecs_cluster_arn" { |
| 53 | + description = "The ECS Cluster where the scheduled task will run" |
| 54 | +} |
| 55 | + |
| 56 | +variable "event_target_target_id" { |
| 57 | + description = "(Optional) The unique target assignment ID. If missing, will generate a random, unique id." |
| 58 | + default = "" |
| 59 | +} |
| 60 | + |
| 61 | +variable "event_target_input" { |
| 62 | + description = "(Optional) Valid JSON text passed to the target." |
| 63 | + default = "" |
| 64 | +} |
| 65 | + |
| 66 | +variable "event_target_input_path" { |
| 67 | + description = "(Optional) The value of the JSONPath that is used for extracting part of the matched event when passing it to the target." |
| 68 | + default = "" |
| 69 | +} |
| 70 | + |
| 71 | +variable "event_target_ecs_target_task_definition_arn" { |
| 72 | + description = "(Required) The ARN of the task definition to use if the event target is an Amazon ECS cluster." |
| 73 | +} |
| 74 | + |
| 75 | +variable "event_target_ecs_target_subnets" { |
| 76 | + description = "The subnets associated with the task or service." |
| 77 | + type = list |
| 78 | +} |
| 79 | + |
| 80 | +variable "event_target_ecs_target_security_groups" { |
| 81 | + 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." |
| 82 | + type = list |
| 83 | + default = [] |
| 84 | +} |
| 85 | + |
| 86 | +variable "event_target_ecs_target_assign_public_ip" { |
| 87 | + description = "(Optional) Assign a public IP address to the ENI (Fargate launch type only). Valid values are true or false. Default false." |
| 88 | + type = bool |
| 89 | + default = false |
| 90 | +} |
| 91 | + |
| 92 | +variable "event_target_ecs_target_task_count" { |
| 93 | + description = "(Optional) The number of tasks to create based on the TaskDefinition. The default is 1." |
| 94 | + type = number |
| 95 | + default = 1 |
| 96 | +} |
| 97 | + |
| 98 | +variable "event_target_ecs_target_platform_version" { |
| 99 | + 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" |
| 100 | + default = "LATEST" |
| 101 | +} |
| 102 | + |
| 103 | +variable "event_target_ecs_target_group" { |
| 104 | + description = "(Optional) Specifies an ECS task group for the task. The maximum length is 255 characters." |
| 105 | + default = "" |
| 106 | +} |
| 107 | + |
| 108 | +variable "ecs_execution_task_role_arn" { |
| 109 | + description = "The task definition execution role" |
| 110 | +} |
| 111 | + |
0 commit comments