-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathvariables.tf
128 lines (105 loc) · 3.54 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
variable "access_list_cidr_blocks" {
type = list(string)
description = "List of CIDRs we want to grant access to our Metaflow Metadata Service. Usually this is our VPN's CIDR blocks."
}
variable "database_name" {
type = string
default = "metaflow"
description = "The database name"
}
variable "database_password" {
type = string
description = "The database password"
}
variable "database_username" {
type = string
description = "The database username"
}
variable "datastore_s3_bucket_kms_key_arn" {
type = string
description = "The ARN of the KMS key used to encrypt the Metaflow datastore S3 bucket"
}
variable "enable_api_basic_auth" {
type = bool
default = true
description = "Enable basic auth for API Gateway? (requires key export)"
}
variable "enable_api_gateway" {
type = bool
default = true
description = "Enable API Gateway for public metadata service endpoint"
}
variable "db_migrate_lambda_zip_file" {
type = string
description = "Output path for the zip file containing the DB migrate lambda"
default = null
}
variable "fargate_execution_role_arn" {
type = string
description = "The IAM role that grants access to ECS and Batch services which we'll use as our Metadata Service API's execution_role for our Fargate instance"
}
variable "iam_partition" {
type = string
default = "aws"
description = "IAM Partition (Select aws-us-gov for AWS GovCloud, otherwise leave as is)"
}
variable "is_gov" {
type = bool
default = false
description = "Set to true if IAM partition is 'aws-us-gov'"
}
variable "metadata_service_container_image" {
type = string
default = ""
description = "Container image for metadata service"
}
variable "metadata_service_cpu" {
type = number
default = 512
description = "ECS task CPU unit for metadata service"
}
variable "metadata_service_memory" {
type = number
default = 1024
description = "ECS task memory in MiB for metadata service"
}
variable "metaflow_vpc_id" {
type = string
description = "ID of the Metaflow VPC this SageMaker notebook instance is to be deployed in"
}
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 "rds_master_instance_endpoint" {
type = string
description = "The database connection endpoint in address:port format"
}
variable "s3_bucket_arn" {
type = string
description = "The ARN of the bucket we'll be using as blob storage"
}
variable "standard_tags" {
type = map(string)
description = "The standard tags to apply to every AWS resource."
}
variable "subnet1_id" {
type = string
description = "First private subnet used for availability zone redundancy"
}
variable "subnet2_id" {
type = string
description = "Second private subnet used for availability zone redundancy"
}
variable "vpc_cidr_blocks" {
type = list(string)
description = "The VPC CIDR blocks that we'll access list on our Metadata Service API to allow all internal communications"
}
variable "with_public_ip" {
type = bool
description = "Enable public IP assignment for the Metadata Service. Typically you want this to be set to true if using public subnets as subnet1_id and subnet2_id, and false otherwise"
}