diff --git a/internal/cloud/awscloud/mocks_test.go b/internal/cloud/awscloud/mocks_test.go index 3631d89e31..4e324ec155 100644 --- a/internal/cloud/awscloud/mocks_test.go +++ b/internal/cloud/awscloud/mocks_test.go @@ -293,7 +293,7 @@ func (m *ec2mock) CreateFleet(ctx context.Context, input *ec2.CreateFleetInput, return &ec2.CreateFleetOutput{ Errors: []ec2types.CreateFleetError{ { - ErrorCode: aws.String("UnfillableCapacity"), + ErrorCode: aws.String("UnfulfillableCapacity"), ErrorMessage: aws.String("Msg"), }, }, diff --git a/internal/cloud/awscloud/secure-instance.go b/internal/cloud/awscloud/secure-instance.go index 437b021a1e..e4c9ce9f1e 100644 --- a/internal/cloud/awscloud/secure-instance.go +++ b/internal/cloud/awscloud/secure-instance.go @@ -547,8 +547,8 @@ func (a *AWS) createFleet(input *ec2.CreateFleetInput) (*ec2.CreateFleetOutput, return nil, fmt.Errorf("Unable to create spot fleet: %w", err) } - if len(createFleetOutput.Errors) > 0 && *createFleetOutput.Errors[0].ErrorCode == "UnfillableCapacity" { - logrus.Warn("Received UnfillableCapacity from CreateFleet, retrying CreateFleet with OnDemand instance") + if len(createFleetOutput.Errors) > 0 && *createFleetOutput.Errors[0].ErrorCode == "UnfulfillableCapacity" { + logrus.Warn("Received UnfulfillableCapacity from CreateFleet, retrying CreateFleet with OnDemand instance") input.SpotOptions = nil createFleetOutput, err = a.ec2.CreateFleet(context.Background(), input) }