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.
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.
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
For .NET Core this operation is only available in asynchronous form. Please refer to CreateFleetAsync.
Namespace: Amazon.GameLift
Assembly: AWSSDK.GameLift.dll
Version: 3.x.y.z
public virtual CreateFleetResponse CreateFleet( CreateFleetRequest request )
Container for the necessary parameters to execute the CreateFleet service method.
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 Framework:
Supported in: 4.5 and newer, 3.5