Host a Game Session and Add a Player
A 3-step recipe with Amazon GameLift. We can help you get access.
Recipe · 3 steps
Host a Game Session and Add a Player
with Amazon GameLift
Create a game session, poll until ACTIVE, then create a player session.
- Create a new game session on the fleet. New game sessions start in ACTIVATING status and must reach ACTIVE before players can join.
- Describe the game session and check whether it has reached ACTIVE status. Repeat this step until the session can accept player sessions.
- Reserve a player session on the now-ACTIVE game session so the player can connect to the game server.
What you'll need to have ready
- fleetId: The fleet ID or ARN to create the game session on.
- maximumPlayerSessionCount: Maximum number of players that can connect to the game session.
- sessionName: Optional descriptive label for the game session.
- playerId: Developer-defined unique identifier for the player to add.
- playerData: Optional developer-defined data for the player.
For your developer
Arazzo workflow amazon-gamelift:host-game-session, 3 operations: CreateGameSession → DescribeGameSessions → CreatePlayerSession. Specs on APIs.io.