diff --git a/pkg/types/aws/validation/machinepool.go b/pkg/types/aws/validation/machinepool.go index f329579d7ce..e36ca8f7a3a 100644 --- a/pkg/types/aws/validation/machinepool.go +++ b/pkg/types/aws/validation/machinepool.go @@ -54,7 +54,7 @@ func ValidateAMIID(platform *aws.Platform, p *aws.MachinePool, fldPath *field.Pa // regions is a list of regions for which the user should set AMI ID as copying the AMI to these regions // is known to not be supported. - regions := sets.NewString("us-gov-west-1", "us-gov-east-1", "us-iso-east-1", "cn-north-1", "cn-northwest-1") + regions := sets.NewString("us-iso-east-1", "cn-north-1", "cn-northwest-1") if pool.AMIID == "" && regions.Has(platform.Region) { allErrs = append(allErrs, field.Required(fldPath, fmt.Sprintf("AMI ID must be provided for regions %s", strings.Join(regions.List(), ", ")))) } diff --git a/pkg/types/aws/validation/machinepool_test.go b/pkg/types/aws/validation/machinepool_test.go index 1ce3a720265..560d5c83257 100644 --- a/pkg/types/aws/validation/machinepool_test.go +++ b/pkg/types/aws/validation/machinepool_test.go @@ -88,9 +88,6 @@ func Test_validateAMIID(t *testing.T) { err string }{{ platform: &aws.Platform{Region: "us-east-1"}, - }, { - platform: &aws.Platform{Region: "us-gov-east-1"}, - err: `^test-path: Required value: AMI ID must be provided for regions .*$`, }, { platform: &aws.Platform{Region: "cn-north-1"}, err: `^test-path: Required value: AMI ID must be provided for regions .*$`,