Fleet
Provides a GameLift Fleet resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.gamelift.Fleet;
import com.pulumi.aws.gamelift.FleetArgs;
import com.pulumi.aws.gamelift.inputs.FleetRuntimeConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Fleet("example", FleetArgs.builder()
.buildId(aws_gamelift_build.example().id())
.ec2InstanceType("t2.micro")
.fleetType("ON_DEMAND")
.runtimeConfiguration(FleetRuntimeConfigurationArgs.builder()
.serverProcesses(FleetRuntimeConfigurationServerProcessArgs.builder()
.concurrentExecutions(1)
.launchPath("C:\\game\\GomokuServer.exe")
.build())
.build())
.build());
}
}
Import
GameLift Fleets can be imported using the ID, e.g.,
$ pulumi import aws:gamelift/fleet:Fleet example <fleet-id>
Properties
Prompts GameLift to generate a TLS/SSL certificate for the fleet. See certificate_configuration.
Human-readable description of the fleet.
Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
Name of an EC2 instance typeE.g., t2.micro
ARN of an IAM role that instances in the fleet can assume.
List of names of metric groups to add this fleet to. A metric group tracks metrics across all fleets in the group. Defaults to default
.
Game session protection policy to apply to all instances in this fleetE.g., FullProtection
. Defaults to NoProtection
.
Operating system of the fleet's computing resources.
Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
Instructions for launching server processes on each instance in the fleet. See below.