ec2fleet
Gets or updates an individual ec2fleet
resource, use ec2fleets
to retrieve a list of resources or to create or delete a resource.
Overview
Name | ec2fleet |
Type | Resource |
Description | Resource Type definition for AWS::EC2::EC2Fleet |
Id | aws.ec2.ec2fleet |
Fields
Name | Datatype | Description |
---|---|---|
target_capacity_specification | object | |
on_demand_options | object | |
type | string | |
excess_capacity_termination_policy | string | |
tag_specifications | array | |
spot_options | object | |
valid_from | string | |
replace_unhealthy_instances | boolean | |
launch_template_configs | array | |
fleet_id | string | |
terminate_instances_with_expiration | boolean | |
valid_until | string | |
context | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__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