Skip to main content

ec2fleet

Gets or updates an individual ec2fleet resource, use ec2fleets to retrieve a list of resources or to create or delete a resource.

Overview

Nameec2fleet
TypeResource
DescriptionResource Type definition for AWS::EC2::EC2Fleet
Idaws.ec2.ec2fleet

Fields

NameDatatypeDescription
target_capacity_specificationobject
on_demand_optionsobject
typestring
excess_capacity_termination_policystring
tag_specificationsarray
spot_optionsobject
valid_fromstring
replace_unhealthy_instancesboolean
launch_template_configsarray
fleet_idstring
terminate_instances_with_expirationboolean
valid_untilstring
contextstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT Example

SELECT
region,
target_capacity_specification,
on_demand_options,
type,
excess_capacity_termination_policy,
tag_specifications,
spot_options,
valid_from,
replace_unhealthy_instances,
launch_template_configs,
fleet_id,
terminate_instances_with_expiration,
valid_until,
context
FROM aws.ec2.ec2fleet
WHERE region = 'us-east-1' AND data__Identifier = '<FleetId>';

Permissions

To operate on the ec2fleet resource, the following permissions are required:

Read

ec2:DescribeFleets

Update

ec2:ModifyFleet,
ec2:DescribeFleets