Skip to content

[Enhancement]: Add support for instant type of fleet in aws_ec2_fleet #28830

Closed
@dkheyman

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

#9007

Would you like to implement a fix?

No

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.service/ec2Issues and PRs that pertain to the ec2 service.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions