File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import (
2222 "strings"
2323
2424 "github.com/aws/amazon-vpc-cni-k8s/pkg/awsutils"
25+ "github.com/aws/aws-sdk-go/aws/awserr"
2526 "github.com/cortexlabs/cortex/pkg/consts"
2627 "github.com/cortexlabs/cortex/pkg/lib/aws"
2728 cr "github.com/cortexlabs/cortex/pkg/lib/configreader"
@@ -425,7 +426,10 @@ func (cc *Config) Validate(awsClient *aws.Client) error {
425426 }
426427
427428 if err := awsClient .VerifyInstanceQuota (* cc .InstanceType ); err != nil {
428- return errors .Wrap (err , InstanceTypeKey )
429+ // Skip AWS errors, since some regions (e.g. eu-north-1) do not support this API
430+ if _ , ok := errors .Cause (err ).(awserr.Error ); ! ok {
431+ return errors .Wrap (err , InstanceTypeKey )
432+ }
429433 }
430434
431435 if len (cc .AvailabilityZones ) > 0 {
You can’t perform that action at this time.
0 commit comments