[Enhancement]: Add support for instant
type of fleet in aws_ec2_fleet #28830
Closed
Description
Description
EC2 CreateFleet API allows for creation of instances with 3 modes: maintain
, request
, and instant
. Instant support is as of yet missing in the Terraform resource, prohibiting ability to take advantage of a synchronous EC2 instance fulfillment process that is now the recommended approach to launching instances, instead of maintain and/or request.
Would like to add support for instant
as a type
that works for EC2 fleet.
Affected Resource(s) and/or Data Source(s)
aws_ec2_fleet
Potential Terraform Configuration
resource "aws_ec2_fleet" "example" {
type = "instant"
launch_template_config {
launch_template_specification {
launch_template_id = aws_launch_template.example.id
version = aws_launch_template.example.latest_version
}
}
target_capacity_specification {
default_target_capacity_type = "on-demand"
total_target_capacity = 3
}
}
References
Would you like to implement a fix?
No