From 7f48fe1b7e22904ef85015624ed5d036ba098eab Mon Sep 17 00:00:00 2001 From: Jiaxin Shan Date: Mon, 14 Oct 2019 13:32:11 -0700 Subject: [PATCH] Add support for m5n/m5dn/r5n instances --- pkg/awsutils/vpc_ip_resource_limit.go | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/pkg/awsutils/vpc_ip_resource_limit.go b/pkg/awsutils/vpc_ip_resource_limit.go index b73828e2ca..1bb5582a0c 100644 --- a/pkg/awsutils/vpc_ip_resource_limit.go +++ b/pkg/awsutils/vpc_ip_resource_limit.go @@ -148,6 +148,22 @@ var InstanceENIsAvailable = map[string]int{ "m5d.16xlarge": 15, "m5d.24xlarge": 15, "m5d.metal": 15, + "m5dn.large": 3, + "m5dn.xlarge": 4, + "m5dn.2xlarge": 4, + "m5dn.4xlarge": 8, + "m5dn.8xlarge": 8, + "m5dn.12xlarge": 8, + "m5dn.16xlarge": 15, + "m5dn.24xlarge": 15, + "m5n.large": 3, + "m5n.xlarge": 4, + "m5n.2xlarge": 4, + "m5n.4xlarge": 8, + "m5n.8xlarge": 8, + "m5n.12xlarge": 8, + "m5n.16xlarge": 15, + "m5n.24xlarge": 15, "p2.xlarge": 4, "p2.8xlarge": 8, "p2.16xlarge": 8, @@ -206,6 +222,14 @@ var InstanceENIsAvailable = map[string]int{ "r5dn.12xlarge": 8, "r5dn.16xlarge": 15, "r5dn.24xlarge": 15, + "r5n.large": 3, + "r5n.xlarge": 4, + "r5n.2xlarge": 4, + "r5n.4xlarge": 8, + "r5n.8xlarge": 8, + "r5n.12xlarge": 8, + "r5n.16xlarge": 15, + "r5n.24xlarge": 15, "t1.micro": 2, "t2.nano": 2, "t2.micro": 2, @@ -382,6 +406,22 @@ var InstanceIPsAvailable = map[string]int{ "m5d.12xlarge": 30, "m5d.16xlarge": 50, "m5d.24xlarge": 50, + "m5dn.large": 10, + "m5dn.xlarge": 15, + "m5dn.2xlarge": 15, + "m5dn.4xlarge": 30, + "m5dn.8xlarge": 30, + "m5dn.12xlarge": 30, + "m5dn.16xlarge": 50, + "m5dn.24xlarge": 50, + "m5n.large": 10, + "m5n.xlarge": 15, + "m5n.2xlarge": 15, + "m5n.4xlarge": 30, + "m5n.8xlarge": 30, + "m5n.12xlarge": 30, + "m5n.16xlarge": 50, + "m5n.24xlarge": 50, "m5d.metal": 50, "p2.xlarge": 15, "p2.8xlarge": 30, @@ -441,6 +481,14 @@ var InstanceIPsAvailable = map[string]int{ "r5dn.12xlarge": 30, "r5dn.16xlarge": 50, "r5dn.24xlarge": 50, + "r5n.large": 10, + "r5n.xlarge": 15, + "r5n.2xlarge": 15, + "r5n.4xlarge": 30, + "r5n.8xlarge": 30, + "r5n.12xlarge": 30, + "r5n.16xlarge": 50, + "r5n.24xlarge": 50, "t1.micro": 2, "t2.nano": 2, "t2.micro": 2,