-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
81 lines (67 loc) · 2.1 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
##########################
# Application settings
##########################
variable "application_name" {
type = string
description = "EMR serverless application name."
}
variable "application_max_memory" {
type = string
description = "The maximum memory available for the entire application."
default = "4 GB"
}
variable "application_max_cores" {
type = string
description = "The maximum CPU cores for the entire application."
default = "1 vCPU"
}
variable "initial_worker_count" {
type = number
default = null
description = "Number of initial workers, directly available at job submission."
}
variable "initial_worker_cpu" {
type = string
default = "2 vCPU"
description = "Amount of initial worker memory, directly available at job submission."
}
variable "initial_worker_memory" {
type = string
description = "Amount of initial worker memory, directly available at job submission."
default = "10 GB"
}
##########################
# Script storage settings
##########################
variable "bucket_name" {
type = string
description = "The bucket in which scripts for the application will be stored."
default = "emr-serverless-bucket"
}
variable "bucket_acl" {
type = string
description = "The canned ACL to apply. Valid values are private, public-read, public-read-write, aws-exec-read, authenticated-read, bucket-owner-read, and bucket-owner-full-control. Defaults to private."
default = "private"
}
variable "bucket_tags" {
type = map
description = "S3 bucket tags."
default = {}
}
variable "scripts" {
type = string
description = "Script folder to be compressed and uploaded to S3 bucket."
}
##########################
# Packaging settings
##########################
variable "artifacts_dir" {
type = string
description = "Directory name where artifacts should be stored."
default = "builds"
}
variable "env" {
type = string
description = "Compressed environment to be uploaded to S3 bucket (either conda or venv)."
default = null
}