forked from outerbounds/terraform-aws-metaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
102 lines (84 loc) · 3.2 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
variable "batch_type" {
type = string
description = "AWS Batch Compute Type ('ec2', 'fargate', 'spot')"
default = "ec2"
validation {
condition = contains(["ec2", "fargate", "spot"], var.batch_type)
error_message = "Allowed values for input_parameter are 'ec2', 'fargate', 'spot'."
}
}
variable "database_password_secret_manager_arn" {
type = string
description = "The arn of the database password stored in AWS secrets manager"
sensitive = true
}
variable "compute_environment_ami_id" {
type = string
description = "The AMI ID to use for Batch Compute Environment EC2 instances. If not specified, defaults to the latest ECS optimised AMI."
default = null
}
variable "compute_environment_user_data_base64" {
type = string
default = null
description = "Base64 hash of the user data to use for Batch Compute Environment EC2 instances."
}
variable "compute_environment_spot_bid_percentage" {
type = number
default = 100
description = "The maximum percentage of on-demand EC2 instance price to bid for spot instances when using the 'spot' AWS Batch Compute Type."
}
variable "compute_environment_desired_vcpus" {
type = number
description = "Desired Starting VCPUs for Batch Compute Environment [0-16] for EC2 Batch Compute Environment (ignored for Fargate)"
}
variable "compute_environment_instance_types" {
type = list(string)
description = "The instance types for the compute environment as a comma-separated list"
}
variable "compute_environment_max_vcpus" {
type = number
description = "Maximum VCPUs for Batch Compute Environment [16-96]"
}
variable "compute_environment_min_vcpus" {
type = number
description = "Minimum VCPUs for Batch Compute Environment [0-16] for EC2 Batch Compute Environment (ignored for Fargate)"
}
variable "ecs_cluster_id" {
type = string
default = null
description = "The ID of an existing ECS cluster to run services on. If no cluster ID is specfied, a new cluster will be created."
}
variable "compute_environment_egress_cidr_blocks" {
type = list(string)
default = ["0.0.0.0/0"]
description = "CIDR blocks to which egress is allowed from the Batch Compute environment's security group"
}
variable "iam_partition" {
type = string
default = "aws"
description = "IAM Partition (Select aws-us-gov for AWS GovCloud, otherwise leave as is)"
}
variable "resource_prefix" {
type = string
description = "Prefix given to all AWS resources to differentiate between applications"
}
variable "resource_suffix" {
type = string
description = "Suffix given to all AWS resources to differentiate between environment and workspace"
}
variable "metaflow_vpc_id" {
type = string
description = "ID of the Metaflow VPC this SageMaker notebook instance is to be deployed in"
}
variable "standard_tags" {
type = map(string)
description = "The standard tags to apply to every AWS resource."
}
variable "subnet1_id" {
type = string
description = "The first private subnet used for redundancy"
}
variable "subnet2_id" {
type = string
description = "The second private subnet used for redundancy"
}