By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Validation error detected: Value '.....' at 'routingStrategy.fleetId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^[a-z]*fleet-[a-zA-Z0-9\-]+

0

Hi, I’m getting this error when I try to create an alias for my fleet: *1 validation error detected: Value 'arn:aws:gamelift:us-east-1:....... /fleet-...........' at 'routingStrategy.fleetId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^[a-z]fleet-[a-zA-Z0-9-]+.

This isn’t the first time I’ve created an alias for a fleet in AWS GameLift, and I’ve always done it without any issues before. But this time, it looks like the fleet value starts with 'arn:...' instead of just the fleet ID, which should start with 'fleet-...', causing the regex error.

Can anyone help me figure out how to fix this?

Enter image description here

asked a month ago45 views
1 Answer
0

It appears that you're encountering an issue because you're providing the full ARN (Amazon Resource Name) of the fleet instead of just the fleet ID when creating an alias in AWS GameLift. This is causing a validation error because the system expects only the fleet ID.

To resolve this issue, you need to use only the fleet ID, not the entire ARN. The fleet ID should start with "fleet-" followed by a combination of letters, numbers, and hyphens.

For example, if your full ARN looks like this: arn:aws:gamelift:us-east-1:123456789012:fleet/fleet-1234abcd-5678-efgh-ijkl-90mnopqrstuv

You should only use the part that starts with "fleet-": fleet-1234abcd-5678-efgh-ijkl-90mnopqrstuv

When setting up the routing strategy for your alias, make sure to use this fleet ID format. The FleetId field in the routing strategy configuration is specifically designed to accept the fleet ID, not the full ARN.

Remember that aliases in GameLift are used to simplify fleet management, allowing you to update your game clients to point to an alias instead of directly to a fleet. This makes it easier to switch between fleets without updating your game client.

By providing just the fleet ID (starting with "fleet-"), you should be able to create the alias without encountering the validation error.
Sources
RoutingStrategy - Amazon GameLift
Alias - Amazon GameLift

profile picture
answered a month ago
  • I get it that it should be fleet ID instead of the full ARN to match the pattern. However I am using only AWS UI platform to do it and not the CLI. I do not understand how can I set only the fleet ID when all I do to create the Alias in the Fleet section is to select the current one I have in Active and that's it. Can you please provide more details on how to do it specifically here where I do not have options to set the fleet id.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions