Fleet
Provides a Gamelift Fleet resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.GameLift.Fleet("example", new Aws.GameLift.FleetArgs
{
BuildId = aws_gamelift_build.Example.Id,
Ec2InstanceType = "t2.micro",
FleetType = "ON_DEMAND",
RuntimeConfiguration = new Aws.GameLift.Inputs.FleetRuntimeConfigurationArgs
{
ServerProcesses =
{
new Aws.GameLift.Inputs.FleetRuntimeConfigurationServerProcessArgs
{
ConcurrentExecutions = 1,
LaunchPath = "C:\\game\\GomokuServer.exe",
},
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/gamelift"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gamelift.NewFleet(ctx, "example", &gamelift.FleetArgs{
BuildId: pulumi.String(aws_gamelift_build.Example.Id),
Ec2InstanceType: pulumi.String("t2.micro"),
FleetType: pulumi.String("ON_DEMAND"),
RuntimeConfiguration: &gamelift.FleetRuntimeConfigurationArgs{
ServerProcesses: gamelift.FleetRuntimeConfigurationServerProcessArray{
&gamelift.FleetRuntimeConfigurationServerProcessArgs{
ConcurrentExecutions: pulumi.Int(1),
LaunchPath: pulumi.String("C:\\game\\GomokuServer.exe"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.gamelift.Fleet("example",
build_id=aws_gamelift_build["example"]["id"],
ec2_instance_type="t2.micro",
fleet_type="ON_DEMAND",
runtime_configuration={
"serverProcesses": [{
"concurrentExecutions": 1,
"launchPath": "C:\\game\\GomokuServer.exe",
}],
})import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.gamelift.Fleet("example", {
buildId: aws_gamelift_build_example.id,
ec2InstanceType: "t2.micro",
fleetType: "ON_DEMAND",
runtimeConfiguration: {
serverProcesses: [{
concurrentExecutions: 1,
launchPath: "C:\\game\\GomokuServer.exe",
}],
},
});Create a Fleet Resource
new Fleet(name: string, args: FleetArgs, opts?: CustomResourceOptions);def Fleet(resource_name, opts=None, build_id=None, description=None, ec2_inbound_permissions=None, ec2_instance_type=None, fleet_type=None, instance_role_arn=None, metric_groups=None, name=None, new_game_session_protection_policy=None, resource_creation_limit_policy=None, runtime_configuration=None, tags=None, __props__=None);public Fleet(string name, FleetArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Fleet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Fleet resource accepts the following input properties:
- Build
Id string ID of the Gamelift Build to be deployed on the fleet.
- Ec2Instance
Type string Name of an EC2 instance type. e.g.
t2.micro- Description string
Human-readable description of the fleet.
- Ec2Inbound
Permissions List<FleetEc2Inbound Permission Args> Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
- Fleet
Type string Type of fleet. This value must be
ON_DEMANDorSPOT. Defaults toON_DEMAND.- Instance
Role stringArn ARN of an IAM role that instances in the fleet can assume.
- Metric
Groups List<string> 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.- Name string
The name of the fleet.
- New
Game stringSession Protection Policy Game session protection policy to apply to all instances in this fleet. e.g.
FullProtection. Defaults toNoProtection.- Resource
Creation FleetLimit Policy Resource Creation Limit Policy Args Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
- Runtime
Configuration FleetRuntime Configuration Args Instructions for launching server processes on each instance in the fleet. See below.
- Dictionary<string, string>
Key-value map of resource tags
- Build
Id string ID of the Gamelift Build to be deployed on the fleet.
- Ec2Instance
Type string Name of an EC2 instance type. e.g.
t2.micro- Description string
Human-readable description of the fleet.
- Ec2Inbound
Permissions []FleetEc2Inbound Permission Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
- Fleet
Type string Type of fleet. This value must be
ON_DEMANDorSPOT. Defaults toON_DEMAND.- Instance
Role stringArn ARN of an IAM role that instances in the fleet can assume.
- Metric
Groups []string 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.- Name string
The name of the fleet.
- New
Game stringSession Protection Policy Game session protection policy to apply to all instances in this fleet. e.g.
FullProtection. Defaults toNoProtection.- Resource
Creation FleetLimit Policy Resource Creation Limit Policy Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
- Runtime
Configuration FleetRuntime Configuration Instructions for launching server processes on each instance in the fleet. See below.
- map[string]string
Key-value map of resource tags
- build
Id string ID of the Gamelift Build to be deployed on the fleet.
- ec2Instance
Type string Name of an EC2 instance type. e.g.
t2.micro- description string
Human-readable description of the fleet.
- ec2Inbound
Permissions FleetEc2Inbound Permission[] Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
- fleet
Type string Type of fleet. This value must be
ON_DEMANDorSPOT. Defaults toON_DEMAND.- instance
Role stringArn ARN of an IAM role that instances in the fleet can assume.
- metric
Groups string[] 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.- name string
The name of the fleet.
- new
Game stringSession Protection Policy Game session protection policy to apply to all instances in this fleet. e.g.
FullProtection. Defaults toNoProtection.- resource
Creation FleetLimit Policy Resource Creation Limit Policy Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
- runtime
Configuration FleetRuntime Configuration Instructions for launching server processes on each instance in the fleet. See below.
- {[key: string]: string}
Key-value map of resource tags
- build_
id str ID of the Gamelift Build to be deployed on the fleet.
- ec2_
instance_ strtype Name of an EC2 instance type. e.g.
t2.micro- description str
Human-readable description of the fleet.
- ec2_
inbound_ List[Fleetpermissions Ec2Inbound Permission] Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
- fleet_
type str Type of fleet. This value must be
ON_DEMANDorSPOT. Defaults toON_DEMAND.- instance_
role_ strarn ARN of an IAM role that instances in the fleet can assume.
- metric_
groups List[str] 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.- name str
The name of the fleet.
- new_
game_ strsession_ protection_ policy Game session protection policy to apply to all instances in this fleet. e.g.
FullProtection. Defaults toNoProtection.- resource_
creation_ Dict[Fleetlimit_ policy Resource Creation Limit Policy] Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
- runtime_
configuration Dict[FleetRuntime Configuration] Instructions for launching server processes on each instance in the fleet. See below.
- Dict[str, str]
Key-value map of resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the Fleet resource produces the following output properties:
- Arn string
Fleet ARN.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Paths List<string> - Operating
System string Operating system of the fleet’s computing resources.
Look up an Existing Fleet Resource
Get an existing Fleet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FleetState, opts?: CustomResourceOptions): Fleetstatic get(resource_name, id, opts=None, arn=None, build_id=None, description=None, ec2_inbound_permissions=None, ec2_instance_type=None, fleet_type=None, instance_role_arn=None, log_paths=None, metric_groups=None, name=None, new_game_session_protection_policy=None, operating_system=None, resource_creation_limit_policy=None, runtime_configuration=None, tags=None, __props__=None);func GetFleet(ctx *Context, name string, id IDInput, state *FleetState, opts ...ResourceOption) (*Fleet, error)public static Fleet Get(string name, Input<string> id, FleetState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
Fleet ARN.
- Build
Id string ID of the Gamelift Build to be deployed on the fleet.
- Description string
Human-readable description of the fleet.
- Ec2Inbound
Permissions List<FleetEc2Inbound Permission Args> Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
- Ec2Instance
Type string Name of an EC2 instance type. e.g.
t2.micro- Fleet
Type string Type of fleet. This value must be
ON_DEMANDorSPOT. Defaults toON_DEMAND.- Instance
Role stringArn ARN of an IAM role that instances in the fleet can assume.
- Log
Paths List<string> - Metric
Groups List<string> 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.- Name string
The name of the fleet.
- New
Game stringSession Protection Policy Game session protection policy to apply to all instances in this fleet. e.g.
FullProtection. Defaults toNoProtection.- Operating
System string Operating system of the fleet’s computing resources.
- Resource
Creation FleetLimit Policy Resource Creation Limit Policy Args Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
- Runtime
Configuration FleetRuntime Configuration Args Instructions for launching server processes on each instance in the fleet. See below.
- Dictionary<string, string>
Key-value map of resource tags
- Arn string
Fleet ARN.
- Build
Id string ID of the Gamelift Build to be deployed on the fleet.
- Description string
Human-readable description of the fleet.
- Ec2Inbound
Permissions []FleetEc2Inbound Permission Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
- Ec2Instance
Type string Name of an EC2 instance type. e.g.
t2.micro- Fleet
Type string Type of fleet. This value must be
ON_DEMANDorSPOT. Defaults toON_DEMAND.- Instance
Role stringArn ARN of an IAM role that instances in the fleet can assume.
- Log
Paths []string - Metric
Groups []string 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.- Name string
The name of the fleet.
- New
Game stringSession Protection Policy Game session protection policy to apply to all instances in this fleet. e.g.
FullProtection. Defaults toNoProtection.- Operating
System string Operating system of the fleet’s computing resources.
- Resource
Creation FleetLimit Policy Resource Creation Limit Policy Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
- Runtime
Configuration FleetRuntime Configuration Instructions for launching server processes on each instance in the fleet. See below.
- map[string]string
Key-value map of resource tags
- arn string
Fleet ARN.
- build
Id string ID of the Gamelift Build to be deployed on the fleet.
- description string
Human-readable description of the fleet.
- ec2Inbound
Permissions FleetEc2Inbound Permission[] Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
- ec2Instance
Type string Name of an EC2 instance type. e.g.
t2.micro- fleet
Type string Type of fleet. This value must be
ON_DEMANDorSPOT. Defaults toON_DEMAND.- instance
Role stringArn ARN of an IAM role that instances in the fleet can assume.
- log
Paths string[] - metric
Groups string[] 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.- name string
The name of the fleet.
- new
Game stringSession Protection Policy Game session protection policy to apply to all instances in this fleet. e.g.
FullProtection. Defaults toNoProtection.- operating
System string Operating system of the fleet’s computing resources.
- resource
Creation FleetLimit Policy Resource Creation Limit Policy Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
- runtime
Configuration FleetRuntime Configuration Instructions for launching server processes on each instance in the fleet. See below.
- {[key: string]: string}
Key-value map of resource tags
- arn str
Fleet ARN.
- build_
id str ID of the Gamelift Build to be deployed on the fleet.
- description str
Human-readable description of the fleet.
- ec2_
inbound_ List[Fleetpermissions Ec2Inbound Permission] Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
- ec2_
instance_ strtype Name of an EC2 instance type. e.g.
t2.micro- fleet_
type str Type of fleet. This value must be
ON_DEMANDorSPOT. Defaults toON_DEMAND.- instance_
role_ strarn ARN of an IAM role that instances in the fleet can assume.
- log_
paths List[str] - metric_
groups List[str] 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.- name str
The name of the fleet.
- new_
game_ strsession_ protection_ policy Game session protection policy to apply to all instances in this fleet. e.g.
FullProtection. Defaults toNoProtection.- operating_
system str Operating system of the fleet’s computing resources.
- resource_
creation_ Dict[Fleetlimit_ policy Resource Creation Limit Policy] Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
- runtime_
configuration Dict[FleetRuntime Configuration] Instructions for launching server processes on each instance in the fleet. See below.
- Dict[str, str]
Key-value map of resource tags
Supporting Types
FleetEc2InboundPermission
- From
Port int Starting value for a range of allowed port numbers.
- Ip
Range string Range of allowed IP addresses expressed in CIDR notation. e.g.
000.000.000.000/[subnet mask]or0.0.0.0/[subnet mask].- Protocol string
Network communication protocol used by the fleet. e.g.
TCPorUDP- To
Port int Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than
from_port.
- From
Port int Starting value for a range of allowed port numbers.
- Ip
Range string Range of allowed IP addresses expressed in CIDR notation. e.g.
000.000.000.000/[subnet mask]or0.0.0.0/[subnet mask].- Protocol string
Network communication protocol used by the fleet. e.g.
TCPorUDP- To
Port int Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than
from_port.
- from
Port number Starting value for a range of allowed port numbers.
- ip
Range string Range of allowed IP addresses expressed in CIDR notation. e.g.
000.000.000.000/[subnet mask]or0.0.0.0/[subnet mask].- protocol string
Network communication protocol used by the fleet. e.g.
TCPorUDP- to
Port number Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than
from_port.
- from_
port float Starting value for a range of allowed port numbers.
- ip
Range str Range of allowed IP addresses expressed in CIDR notation. e.g.
000.000.000.000/[subnet mask]or0.0.0.0/[subnet mask].- protocol str
Network communication protocol used by the fleet. e.g.
TCPorUDP- to_
port float Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than
from_port.
FleetResourceCreationLimitPolicy
- New
Game intSessions Per Creator Maximum number of game sessions that an individual can create during the policy period.
- Policy
Period intIn Minutes Time span used in evaluating the resource creation limit policy.
- New
Game intSessions Per Creator Maximum number of game sessions that an individual can create during the policy period.
- Policy
Period intIn Minutes Time span used in evaluating the resource creation limit policy.
- new
Game numberSessions Per Creator Maximum number of game sessions that an individual can create during the policy period.
- policy
Period numberIn Minutes Time span used in evaluating the resource creation limit policy.
- new
Game floatSessions Per Creator Maximum number of game sessions that an individual can create during the policy period.
- policy
Period floatIn Minutes Time span used in evaluating the resource creation limit policy.
FleetRuntimeConfiguration
- Game
Session intActivation Timeout Seconds Maximum amount of time (in seconds) that a game session can remain in status
ACTIVATING.- Max
Concurrent intGame Session Activations Maximum number of game sessions with status
ACTIVATINGto allow on an instance simultaneously.- Server
Processes List<FleetRuntime Configuration Server Process Args> Collection of server process configurations that describe which server processes to run on each instance in a fleet. See below.
- Game
Session intActivation Timeout Seconds Maximum amount of time (in seconds) that a game session can remain in status
ACTIVATING.- Max
Concurrent intGame Session Activations Maximum number of game sessions with status
ACTIVATINGto allow on an instance simultaneously.- Server
Processes []FleetRuntime Configuration Server Process Collection of server process configurations that describe which server processes to run on each instance in a fleet. See below.
- game
Session numberActivation Timeout Seconds Maximum amount of time (in seconds) that a game session can remain in status
ACTIVATING.- max
Concurrent numberGame Session Activations Maximum number of game sessions with status
ACTIVATINGto allow on an instance simultaneously.- server
Processes FleetRuntime Configuration Server Process[] Collection of server process configurations that describe which server processes to run on each instance in a fleet. See below.
- game
Session floatActivation Timeout Seconds Maximum amount of time (in seconds) that a game session can remain in status
ACTIVATING.- max
Concurrent floatGame Session Activations Maximum number of game sessions with status
ACTIVATINGto allow on an instance simultaneously.- server
Processes List[FleetRuntime Configuration Server Process] Collection of server process configurations that describe which server processes to run on each instance in a fleet. See below.
FleetRuntimeConfigurationServerProcess
- Concurrent
Executions int Number of server processes using this configuration to run concurrently on an instance.
- Launch
Path string Location of the server executable in a game build. All game builds are installed on instances at the root : for Windows instances
C:\game, and for Linux instances/local/game.- Parameters string
Optional list of parameters to pass to the server executable on launch.
- Concurrent
Executions int Number of server processes using this configuration to run concurrently on an instance.
- Launch
Path string Location of the server executable in a game build. All game builds are installed on instances at the root : for Windows instances
C:\game, and for Linux instances/local/game.- Parameters string
Optional list of parameters to pass to the server executable on launch.
- concurrent
Executions number Number of server processes using this configuration to run concurrently on an instance.
- launch
Path string Location of the server executable in a game build. All game builds are installed on instances at the root : for Windows instances
C:\game, and for Linux instances/local/game.- parameters string
Optional list of parameters to pass to the server executable on launch.
- concurrent
Executions float Number of server processes using this configuration to run concurrently on an instance.
- launch
Path str Location of the server executable in a game build. All game builds are installed on instances at the root : for Windows instances
C:\game, and for Linux instances/local/game.- parameters str
Optional list of parameters to pass to the server executable on launch.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.