fleet
Gets an individual fleet
resource
Overview
Name | fleet |
Type | Resource |
Description | fleet |
Id | awscc.gamelift.fleet |
Fields
Name | Datatype | Description |
---|---|---|
scaling_policies | array | A list of rules that control how a fleet is scaled. |
description | string | A human-readable description of a fleet. |
peer_vpc_id | string | A unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the same Region as your fleet. To look up a VPC ID, use the VPC Dashboard in the AWS Management Console. |
apply_capacity | string | Determines whether to apply fleet or location capacities on fleet creation. |
e_c2_inbound_permissions | array | A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server. |
compute_type | string | ComputeType to differentiate EC2 hardware managed by GameLift and Anywhere hardware managed by the customer. |
name | string | A descriptive label that is associated with a fleet. Fleet names do not need to be unique. |
anywhere_configuration | undefined | Configuration for Anywhere fleet. |
instance_role_arn | string | A unique identifier for an AWS IAM role that manages access to your AWS services. With an instance role ARN set, any application that runs on an instance in this fleet can assume the role, including install scripts, server processes, and daemons (background processes). Create a role or look up a role's ARN from the IAM dashboard in the AWS Management Console. |
fleet_id | string | Unique fleet ID |
certificate_configuration | object | Indicates whether to generate a TLS/SSL certificate for the new fleet. TLS certificates are used for encrypting traffic between game clients and game servers running on GameLift. If this parameter is not set, certificate generation is disabled. This fleet setting cannot be changed once the fleet is created. |
instance_role_credentials_provider | string | Credentials provider implementation that loads credentials from the Amazon EC2 Instance Metadata Service. |
desired_ec2_instances | integer | [DEPRECATED] The number of EC2 instances that you want this fleet to host. When creating a new fleet, GameLift automatically sets this value to "1" and initiates a single instance. Once the fleet is active, update this value to trigger GameLift to add or remove instances from the fleet. |
server_launch_parameters | string | This parameter is no longer used but is retained for backward compatibility. Instead, specify server launch parameters in the RuntimeConfiguration parameter. A request must specify either a runtime configuration or values for both ServerLaunchParameters and ServerLaunchPath. |
fleet_type | string | Indicates whether to use On-Demand instances or Spot instances for this fleet. If empty, the default is ON_DEMAND. Both categories of instances use identical hardware and configurations based on the instance type selected for this fleet. |
locations | array | |
new_game_session_protection_policy | string | A game session protection policy to apply to all game sessions hosted on instances in this fleet. When protected, active game sessions cannot be terminated during a scale-down event. If this parameter is not set, instances in this fleet default to no protection. You can change a fleet's protection policy to affect future game sessions on the fleet. You can also set protection for individual game sessions. |
script_id | string | A unique identifier for a Realtime script to be deployed on a new Realtime Servers fleet. The script must have been successfully uploaded to Amazon GameLift. This fleet setting cannot be changed once the fleet is created.<br/><br/>Note: It is not currently possible to use the !Ref command to reference a script created with a CloudFormation template for the fleet property ScriptId. Instead, use Fn::GetAtt Script.Arn or Fn::GetAtt Script.Id to retrieve either of these properties as input for ScriptId. Alternatively, enter a ScriptId string manually. |
max_size | integer | [DEPRECATED] The maximum value that is allowed for the fleet's instance count. When creating a new fleet, GameLift automatically sets this value to "1". Once the fleet is active, you can change this value. |
runtime_configuration | object | Instructions for launching server processes on each instance in the fleet. Server processes run either a custom game build executable or a Realtime script. The runtime configuration defines the server executables or launch script file, launch parameters, and the number of processes to run concurrently on each instance. When creating a fleet, the runtime configuration must have at least one server process configuration; otherwise the request fails with an invalid request exception.<br/><br/>This parameter is required unless the parameters ServerLaunchPath and ServerLaunchParameters are defined. Runtime configuration has replaced these parameters, but fleets that use them will continue to work. |
log_paths | array | This parameter is no longer used. When hosting a custom game build, specify where Amazon GameLift should store log files using the Amazon GameLift server API call ProcessReady() |
server_launch_path | string | This parameter is no longer used. Instead, specify a server launch path using the RuntimeConfiguration parameter. Requests that specify a server launch path and launch parameters instead of a runtime configuration will continue to work. |
min_size | integer | [DEPRECATED] The minimum value allowed for the fleet's instance count. When creating a new fleet, GameLift automatically sets this value to "0". After the fleet is active, you can change this value. |
peer_vpc_aws_account_id | string | A unique identifier for the AWS account with the VPC that you want to peer your Amazon GameLift fleet with. You can find your account ID in the AWS Management Console under account settings. |
metric_groups | array | The name of an Amazon CloudWatch metric group. A metric group aggregates the metrics for all fleets in the group. Specify a string containing the metric group name. You can use an existing name or use a new name to create a new metric group. Currently, this parameter can have only one string. |
build_id | string | A unique identifier for a build to be deployed on the new fleet. If you are deploying the fleet with a custom game build, you must specify this property. The build must have been successfully uploaded to Amazon GameLift and be in a READY status. This fleet setting cannot be changed once the fleet is created. |
resource_creation_limit_policy | object | A policy that limits the number of game sessions an individual player can create over a span of time for this fleet. |
e_c2_instance_type | string | The name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions. |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
scaling_policies,
description,
peer_vpc_id,
apply_capacity,
e_c2_inbound_permissions,
compute_type,
name,
anywhere_configuration,
instance_role_arn,
fleet_id,
certificate_configuration,
instance_role_credentials_provider,
desired_ec2_instances,
server_launch_parameters,
fleet_type,
locations,
new_game_session_protection_policy,
script_id,
max_size,
runtime_configuration,
log_paths,
server_launch_path,
min_size,
peer_vpc_aws_account_id,
metric_groups,
build_id,
resource_creation_limit_policy,
e_c2_instance_type
FROM awscc.gamelift.fleet
WHERE data__Identifier = '<FleetId>';
Permissions
To operate on the fleet
resource, the following permissions are required:
Read
gamelift:DescribeFleetAttributes,
gamelift:DescribeFleetLocationAttributes,
gamelift:DescribeFleetCapacity,
gamelift:DescribeFleetPortSettings,
gamelift:DescribeFleetUtilization,
gamelift:DescribeRuntimeConfiguration,
gamelift:DescribeEC2InstanceLimits,
gamelift:DescribeFleetEvents,
gamelift:DescribeScalingPolicies
Update
gamelift:UpdateFleetAttributes,
gamelift:CreateFleetLocations,
gamelift:DeleteFleetLocations,
gamelift:UpdateFleetCapacity,
gamelift:UpdateFleetPortSettings,
gamelift:UpdateRuntimeConfiguration,
gamelift:DescribeFleetLocationCapacity,
gamelift:DescribeFleetPortSettings,
gamelift:DescribeFleetLocationAttributes,
gamelift:PutScalingPolicy,
gamelift:DescribeScalingPolicies,
gamelift:DeleteScalingPolicy
Delete
gamelift:DeleteFleet,
gamelift:DescribeFleetLocationCapacity,
gamelift:DescribeScalingPolicies,
gamelift:DeleteScalingPolicy