This operation has been expanded to use with the Amazon GameLift containers feature, which is currently in public preview. Creates a fleet of compute resources to host your game servers. Use this operation to set up the following types of fleets based on compute type:
Managed EC2 fleet An EC2 fleet is a set of Amazon Elastic Compute Cloud (Amazon EC2) instances. Your game server build is deployed to each fleet instance. Amazon GameLift manages the fleet's instances and controls the lifecycle of game server processes, which host game sessions for players. EC2 fleets can have instances in multiple locations. Each instance in the fleet is designated a
Compute.
To create an EC2 fleet, provide these required parameters:
- Either BuildId or ScriptId
- ComputeType set to EC2 (the default value)
- EC2InboundPermissions
- EC2InstanceType
- FleetType
- Name
- RuntimeConfiguration with at least one ServerProcesses configuration
If successful, this operation creates a new fleet resource and places it in
NEW status while Amazon GameLift initiates the
fleet creation workflow. To debug your fleet, fetch logs, view performance metrics or other actions on the fleet, create a development fleet with port 22/3389 open. As a best practice, we recommend opening ports for remote access only when you need them and closing them when you're finished.
When the fleet status is ACTIVE, you can adjust capacity settings and turn autoscaling on/off for each location.
Managed container fleet A container fleet is a set of Amazon Elastic Compute Cloud (Amazon EC2) instances. Your container architecture is deployed to each fleet instance based on the fleet configuration. Amazon GameLift manages the containers on each fleet instance and controls the lifecycle of game server processes, which host game sessions for players. Container fleets can have instances in multiple locations. Each container on an instance that runs game server processes is registered as a
Compute.
To create a container fleet, provide these required parameters:
- ComputeType set to CONTAINER
- ContainerGroupsConfiguration
- EC2InboundPermissions
- EC2InstanceType
- FleetType set to ON_DEMAND
- Name
- RuntimeConfiguration with at least one ServerProcesses configuration
If successful, this operation creates a new fleet resource and places it in
NEW status while Amazon GameLift initiates the
fleet creation workflow.
When the fleet status is ACTIVE, you can adjust capacity settings and turn autoscaling on/off for each location.
Anywhere fleet An Anywhere fleet represents compute resources that are not owned or managed by Amazon GameLift. You might create an Anywhere fleet with your local machine for testing, or use one to host game servers with on-premises hardware or other game hosting solutions.
To create an Anywhere fleet, provide these required parameters:
- ComputeType set to ANYWHERE
- Locations specifying a custom location
- Name
If successful, this operation creates a new fleet resource and places it in
ACTIVE status. You can register computes with a fleet in
ACTIVE status.
Learn moreSetting up fleetsSetting up a container fleetDebug fleet creation issuesMulti-location fleets