-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
49 lines (43 loc) · 1.77 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
variable "resource_identifier" {
type = string
description = "identifier for domino-created resources in the AWS account"
nullable = false
default = "domino-sagemaker"
}
variable "region" {
type = string
description = "AWS region in which to create the sagemaker resources"
nullable = false
validation {
condition = can(regex("(us(-gov)?|ap|ca|cn|eu|sa|me|af|il)-(central|(north|south)?(east|west)?)-[0-9]", var.region))
error_message = "The provided region must follow the format of AWS region names, e.g., us-west-2, us-gov-west-1."
}
}
variable "repository" {
type = string
description = "ECR repository name to use for sagemaker deployment images (in the target AWS account). Defaults to the value specified by `resource_identifier`."
nullable = true
default = null
}
variable "bucket" {
type = string
description = "S3 bucket to use for sagemaker deployment model artifacts (in the target AWS account). Defaults to the value specified by `resource_identifier` plus the suffix `-{aws_account_id}.`"
nullable = true
default = null
}
variable "role_name" {
type = string
description = "IAM role name to use for creating sagemaker deployment resources (in the target AWS account). Defaults to the value specified by `resource_identifier`."
nullable = true
default = null
}
variable "domino_external_deployments_role_arn" {
type = string
description = "ARN for the Domino external deployments IAM role (in the domino AWS account)"
nullable = false
}
variable "domino_environments_repository_arn" {
type = string
description = "ARN for the Domino environments repository. ONLY needed if deploying in the SAME AWS account as Domino."
nullable = true
}