3c6c12a943918d9f44591c17fe84e1a53868f452
[csit.git] / fdio.infra.terraform / 1n_nmd / etl / variables.tf
1 # Nomad
2 variable "datacenters" {
3   description = "Specifies the list of DCs to be considered placing this task."
4   type        = list(string)
5   default     = ["dc1"]
6 }
7
8 # ETL
9 variable "aws_access_key_id" {
10   description = "AWS access key."
11   type        = string
12   default     = "aws"
13 }
14
15 variable "aws_secret_access_key" {
16   description = "AWS secret key"
17   type        = string
18   default     = "aws"
19 }
20
21 variable "aws_default_region" {
22   description = "AWS region"
23   type        = string
24   default     = "aws"
25 }
26
27 variable "cpu" {
28   description = "Specifies the CPU required to run this task in MHz."
29   type        = number
30   default     = 10000
31 }
32
33 variable "cron" {
34   description = "Specifies a cron expression configuring the interval to launch."
35   type        = string
36   default     = "@daily"
37 }
38
39 variable "envs" {
40   description = "Specifies ETL environment variables."
41   type        = list(string)
42   default     = []
43 }
44
45 variable "image" {
46   description = "Specifies the Docker image to run."
47   type        = string
48   default     = "pmikus/docker-ubuntu-focal-aws-glue:latest"
49 }
50
51 variable "job_name" {
52   description = "Specifies a name for the job."
53   type        = string
54   default     = "etl"
55 }
56
57 variable "memory" {
58   description = "Specifies the memory required in MB."
59   type        = number
60   default     = 20000
61 }
62
63 variable "out_aws_access_key_id" {
64   description = "AWS access key."
65   type        = string
66   default     = "aws"
67 }
68
69 variable "out_aws_secret_access_key" {
70   description = "AWS secret key"
71   type        = string
72   default     = "aws"
73 }
74
75 variable "out_aws_default_region" {
76   description = "AWS region"
77   type        = string
78   default     = "aws"
79 }
80
81 variable "prohibit_overlap" {
82   description = "Specifies if this job should wait until previous completed."
83   type        = bool
84   default     = true
85 }
86
87 variable "time_zone" {
88   description = "Specifies the time zone to evaluate the next launch interval."
89   type        = string
90   default     = "UTC"
91 }
92
93 variable "type" {
94   description = "Specifies the Nomad scheduler to use."
95   type        = string
96   default     = "batch"
97 }
98
99 variable "vault_secret" {
100   type = object({
101     use_vault_provider        = bool,
102     vault_kv_policy_name      = string,
103     vault_kv_path             = string,
104     vault_kv_field_access_key = string,
105     vault_kv_field_secret_key = string
106   })
107   description = "Set of properties to be able to fetch secret from vault."
108   default = {
109     use_vault_provider        = false
110     vault_kv_policy_name      = "kv"
111     vault_kv_path             = "secret/data/etl"
112     vault_kv_field_access_key = "access_key"
113     vault_kv_field_secret_key = "secret_key"
114   }
115 }