Skip to content

/AWS1/CL_GML=>CREATEFLEETLOCATIONS()

About CreateFleetLocations

This operation has been expanded to use with the Amazon GameLift containers feature, which is currently in public preview.

Adds remote locations to an EC2 or container fleet and begins populating the new locations with instances. The new instances conform to the fleet's instance type, auto-scaling, and other configuration settings.

You can't add remote locations to a fleet that resides in an Amazon Web Services Region that doesn't support multiple locations. Fleets created prior to March 2021 can't support multiple locations.

To add fleet locations, specify the fleet to be updated and provide a list of one or more locations.

If successful, this operation returns the list of added locations with their status set to NEW. Amazon GameLift initiates the process of starting an instance in each added location. You can track the status of each new location by monitoring location creation events using DescribeFleetEvents.

Learn more

Setting up fleets

Multi-location fleets

Method Signature

IMPORTING

Required arguments:

IV_FLEETID TYPE /AWS1/GMLFLEETIDORARN /AWS1/GMLFLEETIDORARN

A unique identifier for the fleet to add locations to. You can use either the fleet ID or ARN value.

IT_LOCATIONS TYPE /AWS1/CL_GMLLOCATIONCONF=>TT_LOCATIONCONFIGURATIONLIST TT_LOCATIONCONFIGURATIONLIST

A list of locations to deploy additional instances to and manage as part of the fleet. You can add any Amazon GameLift-supported Amazon Web Services Region as a remote location, in the form of an Amazon Web Services Region code such as us-west-2.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_GMLCREATEFLEETLOCSOUT /AWS1/CL_GMLCREATEFLEETLOCSOUT