blob: f6d318e855874e564d6add45991b400bc6333800 (
plain)
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
114
115
|
# Nomad
variable "datacenters" {
description = "Specifies the list of DCs to be considered placing this task."
type = list(string)
default = ["dc1"]
}
# ETL
variable "aws_access_key_id" {
description = "AWS access key."
type = string
default = "aws"
}
variable "aws_secret_access_key" {
description = "AWS secret key"
type = string
default = "aws"
}
variable "aws_default_region" {
description = "AWS region"
type = string
default = "aws"
}
variable "cpu" {
description = "Specifies the CPU required to run this task in MHz."
type = number
default = 10000
}
variable "cron" {
description = "Specifies a cron expression configuring the interval to launch."
type = string
default = "@daily"
}
variable "envs" {
description = "Specifies ETL environment variables."
type = list(string)
default = []
}
variable "image" {
description = "Specifies the Docker image to run."
type = string
default = "pmikus/docker-ubuntu-focal-aws-glue:latest"
}
variable "job_name" {
description = "Specifies a name for the job."
type = string
default = "etl"
}
variable "memory" {
description = "Specifies the memory required in MB."
type = number
default = 50000
}
variable "out_aws_access_key_id" {
description = "AWS access key."
type = string
default = "aws"
}
variable "out_aws_secret_access_key" {
description = "AWS secret key"
type = string
default = "aws"
}
variable "out_aws_default_region" {
description = "AWS region"
type = string
default = "aws"
}
variable "prohibit_overlap" {
description = "Specifies if this job should wait until previous completed."
type = bool
default = true
}
variable "time_zone" {
description = "Specifies the time zone to evaluate the next launch interval."
type = string
default = "UTC"
}
variable "type" {
description = "Specifies the Nomad scheduler to use."
type = string
default = "batch"
}
variable "vault_secret" {
type = object({
use_vault_provider = bool,
vault_kv_policy_name = string,
vault_kv_path = string,
vault_kv_field_access_key = string,
vault_kv_field_secret_key = string
})
description = "Set of properties to be able to fetch secret from vault."
default = {
use_vault_provider = false
vault_kv_policy_name = "kv"
vault_kv_path = "secret/data/etl"
vault_kv_field_access_key = "access_key"
vault_kv_field_secret_key = "secret_key"
}
}
|