awscc_ec2_ec2_fleet (Resource)

Resource Type definition for AWS::EC2::EC2Fleet

Example Usage

Create Amazon EC2 Fleet

Creates an Amazon EC2 Fleet utilizing 5 Spot Instances, requires a Amazon EC2 Launch Template:

resource "awscc_ec2_ec2_fleet" "example_fleet" {
  launch_template_configs = [{
    launch_template_specification = {
      launch_template_id = awscc_ec2_launch_template.example_launch_template.id
      version            = "$Latest"
    }
  }]
  target_capacity_specification = {
    default_target_capacity_type = "spot"
    total_target_capacity        = 5
  }
}

Schema

Required

Optional

Read-Only

Nested Schema for launch_template_configs

Optional:

Nested Schema for launch_template_configs.launch_template_specification

Required:

Optional:

Nested Schema for launch_template_configs.overrides

Optional:

Nested Schema for launch_template_configs.overrides.instance_requirements

Optional:

Nested Schema for launch_template_configs.overrides.instance_requirements.accelerator_count

Optional:

Nested Schema for launch_template_configs.overrides.instance_requirements.accelerator_total_memory_mi_b

Optional:

Nested Schema for launch_template_configs.overrides.instance_requirements.baseline_ebs_bandwidth_mbps

Optional:

Nested Schema for launch_template_configs.overrides.instance_requirements.memory_gi_b_per_v_cpu

Optional:

Nested Schema for launch_template_configs.overrides.instance_requirements.memory_mi_b

Optional:

Nested Schema for launch_template_configs.overrides.instance_requirements.network_bandwidth_gbps

Optional:

Nested Schema for launch_template_configs.overrides.instance_requirements.network_interface_count

Optional:

Nested Schema for launch_template_configs.overrides.instance_requirements.total_local_storage_gb

Optional:

Nested Schema for launch_template_configs.overrides.instance_requirements.v_cpu_count

Optional:

Nested Schema for launch_template_configs.overrides.placement

Optional:

Nested Schema for target_capacity_specification

Required:

Optional:

Nested Schema for on_demand_options

Optional:

Nested Schema for on_demand_options.capacity_reservation_options

Optional:

Nested Schema for spot_options

Optional:

Nested Schema for spot_options.maintenance_strategies

Optional:

Nested Schema for spot_options.maintenance_strategies.capacity_rebalance

Optional:

Nested Schema for tag_specifications

Optional:

Nested Schema for tag_specifications.tags

Required:

Import

Import is supported using the following syntax:

$ terraform import awscc_ec2_ec2_fleet.example <resource ID>