Skip to content

Commit 6886bc6

Browse files
authored
Merge pull request #364 from unity-sds/362-c6id-instance-type
Integrate c6id EC2 instances into Airflow CWL DAGs (#362)
2 parents edf6829 + 6ed3177 commit 6886bc6

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

airflow/plugins/unity_sps_utils.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,21 @@
112112
"cpu": 64,
113113
"memory": 128,
114114
},
115+
"c6id.xlarge": {
116+
"desc": "Compute Optimized with SSD local storage",
117+
"cpu": 4,
118+
"memory": 8,
119+
},
120+
"c6id.2xlarge": {
121+
"desc": "Compute Optimized with SSD local storage",
122+
"cpu": 8,
123+
"memory": 16,
124+
},
125+
"c6id.4xlarge": {
126+
"desc": "Compute Optimized with SSD local storage",
127+
"cpu": 16,
128+
"memory": 32,
129+
},
115130
"m5ad.xlarge": {
116131
"desc": "General Purpose with SSD local storage",
117132
"cpu": 4,

terraform-unity/modules/terraform-unity-sps-karpenter-node-config/node-user-data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ echo "Instance family: $instance_family"
1717
#
1818
# Exit if instance family does not support NVME SSD instance store
1919
#
20-
if [[ $instance_family != "m5ad" ]]; then
20+
if [[ $instance_family != "m5ad" ]] && [[ $instance_family != "c6id" ]]; then
2121
exit 0
2222
fi
2323

terraform-unity/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ variable "karpenter_node_pools" {
156156
{
157157
key = "karpenter.k8s.aws/instance-family"
158158
operator = "In"
159-
values = ["m7i", "m6i", "m5", "m5ad", "t3", "c7i", "c6i", "c5", "r7i", "r6i", "r5"]
159+
values = ["m7i", "m6i", "m5", "m5ad", "t3", "c7i", "c6i", "c6id", "c5", "r7i", "r6i", "r5"]
160160
},
161161
{
162162
key = "karpenter.k8s.aws/instance-cpu"
@@ -200,7 +200,7 @@ variable "karpenter_node_pools" {
200200
{
201201
key = "karpenter.k8s.aws/instance-family"
202202
operator = "In"
203-
values = ["m7i", "m6i", "m5", "m5ad", "t3", "c7i", "c6i", "c5", "r7i", "r6i", "r5"]
203+
values = ["m7i", "m6i", "m5", "m5ad", "t3", "c7i", "c6i", "c6id", "c5", "r7i", "r6i", "r5"]
204204
},
205205
{
206206
key = "karpenter.k8s.aws/instance-cpu"
@@ -244,7 +244,7 @@ variable "karpenter_node_pools" {
244244
{
245245
key = "karpenter.k8s.aws/instance-family"
246246
operator = "In"
247-
values = ["m7i", "m6i", "m5", "t3", "c7i", "c6i", "c5", "r7i", "r6i", "r5", "m5ad"]
247+
values = ["m7i", "m6i", "m5", "t3", "c7i", "c6i", "c6id", "c5", "r7i", "r6i", "r5", "m5ad"]
248248
},
249249
{
250250
key = "karpenter.k8s.aws/instance-cpu"
@@ -287,7 +287,7 @@ variable "karpenter_node_pools" {
287287
{
288288
key = "karpenter.k8s.aws/instance-family"
289289
operator = "In"
290-
values = ["m7i", "m6i", "m5", "t3", "c7i", "c6i", "c5", "r7i", "r6i", "r5", "m5ad"]
290+
values = ["m7i", "m6i", "m5", "t3", "c7i", "c6i", "c6id", "c5", "r7i", "r6i", "r5", "m5ad"]
291291
},
292292
{
293293
key = "karpenter.k8s.aws/instance-cpu"

0 commit comments

Comments
 (0)