This table represents the EC2 Fleet resource from Amazon Web Services.

aws.ec2_fleet

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
activity_statuscorestringThe progress of the EC2 Fleet. If there is an error, the status is <code>error</code>. After all requests are placed, the status is <code>pending_fulfillment</code>. If the size of the EC2 Fleet is equal to or greater than its target capacity, the status is <code>fulfilled</code>. If the size of the EC2 Fleet is decreased, the status is <code>pending_termination</code> while instances are terminating.
client_tokencorestringUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>. Constraints: Maximum 64 ASCII characters
contextcorestringReserved.
create_timecoretimestampThe creation date and time of the EC2 Fleet.
errorscorejsonInformation about the instances that could not be launched by the fleet. Valid only when <b>Type</b> is set to <code>instant</code>.
excess_capacity_termination_policycorestringIndicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. Supported only for fleets of type <code>maintain</code>.
fleet_idcorestringThe ID of the EC2 Fleet.
fleet_statecorestringThe state of the EC2 Fleet.
fulfilled_capacitycorefloat64The number of units fulfilled by this request compared to the set target capacity.
fulfilled_on_demand_capacitycorefloat64The number of units fulfilled by this request compared to the set target On-Demand capacity.
instancescorejsonInformation about the instances that were launched by the fleet. Valid only when <b>Type</b> is set to <code>instant</code>.
launch_template_configscorejsonThe launch template and overrides.
on_demand_optionscorejsonThe allocation strategy of On-Demand Instances in an EC2 Fleet.
replace_unhealthy_instancescoreboolIndicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type <code>maintain</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#ec2-fleet-health-checks">EC2 Fleet health checks</a> in the <i>Amazon EC2 User Guide</i>.
spot_optionscorejsonThe configuration of Spot Instances in an EC2 Fleet.
tagscorehstore
target_capacity_specificationcorejsonThe number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is <code>maintain</code>, you can specify a target capacity of 0 and add capacity later.
terminate_instances_with_expirationcoreboolIndicates whether running instances should be terminated when the EC2 Fleet expires.
typecorestringThe type of request. Indicates whether the EC2 Fleet only <code>requests</code> the target capacity, or also attempts to <code>maintain</code> it. If you request a certain target capacity, EC2 Fleet only places the required requests; it does not attempt to replenish instances if capacity is diminished, and it does not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically replenishes any interrupted Spot Instances. Default: <code>maintain</code>.
valid_fromcoretimestampThe start date and time of the request, in UTC format (for example, <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z). The default is to start fulfilling the request immediately.
valid_untilcoretimestampThe end date and time of the request, in UTC format (for example, <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z). At this point, no new instance requests are placed or able to fulfill the request. The default end date is 7 days from the current date.