-
Notifications
You must be signed in to change notification settings - Fork 0
/
modzy.tf
111 lines (90 loc) · 2.32 KB
/
modzy.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
module "modzy" {
source = "modzy/modzy-env/aws"
version = "1.0.0"
admin_email = "john.doe@acmecorp.com"
aws_region = "us-east-1"
aws_profile = "my-aws-profile"
installation_identifier = "modzy-install-1"
fqdn = "modzy.mydomain.com"
k8s_version = "1.21"
management_cidrs = [
"10.x.x.x/x"
]
admin_role_arn = "arn:aws:iam::0123456789:role/RoleName"
tags = {
"Customer" = "Acme Corp"
}
vpc_id = "vpc-0123456789abcde"
public_subnets = [
"subnet-0111111111111111a",
"subnet-0111111111111111b",
"subnet-0111111111111111c",
]
platform_subnets = [
"subnet-0222222222222222a",
"subnet-0222222222222222b",
"subnet-0222222222222222c"
]
model_subnets = [
"subnet-0222222222222222a",
"subnet-0222222222222222b",
"subnet-0222222222222222c"
]
db_subnets = [
"subnet-0333333333333333a",
"subnet-0333333333333333b",
"subnet-0333333333333333c"
]
# Examine the following AWS SSM parameters for latest CPU and GPU AMI IDs
# CPU AMI Id - /aws/service/eks/optimized-ami/1.21/amazon-linux-2/recommended/image_id
# GPU AMI Id - /aws/service/eks/optimized-ami/1.21/amazon-linux-2-gpu/recommended/image_id
worker_ami_id = "<CPU AMI Id>"
ec2_keypair_name = "modzy-nodes"
model_node_groups = [
{
name = "small-cpu"
ami_id = "<CPU AMI Id>"
instance_type = "m5.large"
asg_desired_capacity = 0
asg_min_size = 0
asg_max_size = 3
},
{
name = "medium-cpu"
ami_id = "<CPU AMI Id>"
instance_type = "m5.xlarge"
asg_desired_capacity = 0
asg_min_size = 0
asg_max_size = 3
},
{
name = "large-cpu"
ami_id = "<CPU AMI Id>"
instance_type = "m5.2xlarge"
asg_desired_capacity = 0
asg_min_size = 0
asg_max_size = 3
},
{
name = "small-gpu"
ami_id = "<GPU AMI Id>"
instance_type = "g4dn.xlarge"
asg_desired_capacity = 0
asg_min_size = 0
asg_max_size = 1
},
{
name = "medium-gpu"
ami_id = "<GPU AMI Id>"
instance_type = "p2.xlarge"
asg_desired_capacity = 0
asg_min_size = 0
asg_max_size = 1
}
]
}
output "kots_install_cmd" {
description = "The following command can be used to install Modzy using KOTS."
value = module.modzy.kots_install_cmd
sensitive = true
}