aws.gamelift.get_compute_auth_token
Example SQL Queries
SELECT * FROMaws.gamelift.get_compute_auth_tokenWHERE"fleet_id" = 'VALUE'AND "compute_name" = 'VALUE';Description
Requests an authentication token from Amazon GameLift for a compute resource in an Amazon GameLift Anywhere fleet or container fleet. Game servers that are running on the compute use this token to communicate with the Amazon GameLift service, such as when calling the Amazon GameLift server SDK action InitSDK(). Authentication tokens are valid for a limited time span, so you need to request a fresh token before the current token expires.
Use this operation based on the fleet compute type:
For EC2 fleets, auth token retrieval and refresh is handled automatically. All game servers that are running on all fleet instances have access to a valid auth token.
For ANYWHERE and CONTAINER fleets, if you're using the Amazon GameLift Agent, auth token retrieval and refresh is handled automatically for any container or Anywhere compute where the Agent is running. If you're not using the Agent, create a mechanism to retrieve and refresh auth tokens for computes that are running game server processes.
Learn more
Server SDK reference guides (for version 5.x)
Table Definition
| Column Name | Column Data Type |
|---|---|
| compute_name Required Input Column The name of the compute resource that the authentication token is issued to. | VARCHAR |
| fleet_id Required Input Column A unique identifier for the fleet that the compute is registered to. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| auth_token A valid temporary authentication token. | VARCHAR |
| compute_arn The Amazon Resource Name (ARN) that is assigned to an Amazon GameLift compute resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912. | VARCHAR |
| expiration_timestamp The amount of time until the authentication token is no longer valid. | TIMESTAMP_S |
| fleet_arn The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912. | VARCHAR |