AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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 more
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginCreateFleet and EndCreateFleet.
Namespace: Amazon.GameLift
Assembly: AWSSDK.GameLift.dll
Version: 3.x.y.z
public abstract Task<CreateFleetResponse> CreateFleetAsync( CreateFleetRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the CreateFleet service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
ConflictException | The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. |
InternalServiceException | The service encountered an unrecoverable internal failure while processing the request. Clients can retry such requests immediately or after a waiting period. |
InvalidRequestException | One or more parameter values in the request are invalid. Correct the invalid parameter values before retrying. |
LimitExceededException | The requested operation would cause the resource to exceed the allowed service limit. Resolve the issue before retrying. |
NotFoundException | The requested resources was not found. The resource was either not created yet or deleted. |
NotReadyException | The operation failed because Amazon GameLift has not yet finished validating this compute. We recommend attempting 8 to 10 retries over 3 to 5 minutes with exponential backoffs and jitter. |
TaggingFailedException | The requested tagging operation did not succeed. This may be due to invalid tag format or the maximum tag limit may have been exceeded. Resolve the issue before retrying. |
UnauthorizedException | The client failed authentication. Clients should not retry such requests. |
UnsupportedRegionException | The requested operation is not supported in the Region specified. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer