This repository has been archived by the owner on Apr 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
variables.tf
55 lines (45 loc) · 1.72 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
variable "ecr_repo_name" {
type = string
description = "Name of the ECR repo that contains the Docker image of your cron job"
}
variable "image_tag" {
type = string
description = "Docker tag of the container that you want to run"
}
variable "ecs_cluster_name" {
default = ""
description = "(Optional) Name of the ECS Cluster that you want to execute your cron job. Defaults to your task name if no value is supplied"
}
variable "task_name" {
type = string
description = "Name of the task for resource naming"
}
variable "task_cpu" {
default = 1024
description = "CPU units to allocate to your job (vCPUs * 1024)"
}
variable "task_memory" {
default = 2048
description = "In MiB"
}
variable "subnet_ids" {
type = list(string)
description = "Subnets where the job will be run"
}
variable "cloudwatch_schedule_expression" {
type = string
description = "AWS cron schedule expression"
}
variable "extra_container_defs" {
type = any
default = {}
description = "Additional configuration that you want to add to your task definition (see https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html for all options)"
}
variable "task_role_arn" {
default = null
description = "IAM role ARN for your task if it needs to access any AWS resources. IMPORTANT: This must have an AssumeRolePolicy that includes the 'ecs-tasks.amazonaws.com' provider!!"
}
variable "ecs_task_execution_role_name" {
default = ""
description = "If the default AWS ECSTaskExecutionRole is not sufficient for your needs, you can provide your own ECS Task Execution Role here. The module will attach a CloudWatch policy for logging purposes."
}