Resource Type definition for AWS::EC2::EC2Fleet
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
}
}
launch_template_configs
(Attributes List) (see below for nested schema)target_capacity_specification
(Attributes) (see below for nested schema)context
(String)excess_capacity_termination_policy
(String)on_demand_options
(Attributes) (see below for nested schema)replace_unhealthy_instances
(Boolean)spot_options
(Attributes) (see below for nested schema)tag_specifications
(Attributes List) (see below for nested schema)terminate_instances_with_expiration
(Boolean)type
(String)valid_from
(String)valid_until
(String)fleet_id
(String)id
(String) Uniquely identifies the resource.launch_template_configs
Optional:
launch_template_specification
(Attributes) (see below for nested schema)overrides
(Attributes List) (see below for nested schema)launch_template_configs.launch_template_specification
Required:
version
(String)Optional:
launch_template_id
(String)launch_template_name
(String)launch_template_configs.overrides
Optional:
availability_zone
(String)instance_requirements
(Attributes) (see below for nested schema)instance_type
(String)max_price
(String)placement
(Attributes) (see below for nested schema)priority
(Number)subnet_id
(String)weighted_capacity
(Number)launch_template_configs.overrides.instance_requirements
Optional:
accelerator_count
(Attributes) (see below for nested schema)accelerator_manufacturers
(List of String)accelerator_names
(List of String)accelerator_total_memory_mi_b
(Attributes) (see below for nested schema)accelerator_types
(List of String)allowed_instance_types
(List of String)bare_metal
(String)baseline_ebs_bandwidth_mbps
(Attributes) (see below for nested schema)burstable_performance
(String)cpu_manufacturers
(List of String)excluded_instance_types
(List of String)instance_generations
(List of String)local_storage
(String)local_storage_types
(List of String)max_spot_price_as_percentage_of_optimal_on_demand_price
(Number)memory_gi_b_per_v_cpu
(Attributes) (see below for nested schema)memory_mi_b
(Attributes) (see below for nested schema)network_bandwidth_gbps
(Attributes) (see below for nested schema)network_interface_count
(Attributes) (see below for nested schema)on_demand_max_price_percentage_over_lowest_price
(Number)require_hibernate_support
(Boolean)spot_max_price_percentage_over_lowest_price
(Number)total_local_storage_gb
(Attributes) (see below for nested schema)v_cpu_count
(Attributes) (see below for nested schema)launch_template_configs.overrides.instance_requirements.accelerator_count
Optional:
max
(Number)min
(Number)launch_template_configs.overrides.instance_requirements.accelerator_total_memory_mi_b
Optional:
max
(Number)min
(Number)launch_template_configs.overrides.instance_requirements.baseline_ebs_bandwidth_mbps
Optional:
max
(Number)min
(Number)launch_template_configs.overrides.instance_requirements.memory_gi_b_per_v_cpu
Optional:
max
(Number)min
(Number)launch_template_configs.overrides.instance_requirements.memory_mi_b
Optional:
max
(Number)min
(Number)launch_template_configs.overrides.instance_requirements.network_bandwidth_gbps
Optional:
max
(Number)min
(Number)launch_template_configs.overrides.instance_requirements.network_interface_count
Optional:
max
(Number)min
(Number)launch_template_configs.overrides.instance_requirements.total_local_storage_gb
Optional:
max
(Number)min
(Number)launch_template_configs.overrides.instance_requirements.v_cpu_count
Optional:
max
(Number)min
(Number)launch_template_configs.overrides.placement
Optional:
affinity
(String)availability_zone
(String)group_name
(String)host_id
(String)host_resource_group_arn
(String)partition_number
(Number)spread_domain
(String)tenancy
(String)target_capacity_specification
Required:
total_target_capacity
(Number)Optional:
default_target_capacity_type
(String)on_demand_target_capacity
(Number)spot_target_capacity
(Number)target_capacity_unit_type
(String)on_demand_options
Optional:
allocation_strategy
(String)capacity_reservation_options
(Attributes) (see below for nested schema)max_total_price
(String)min_target_capacity
(Number)single_availability_zone
(Boolean)single_instance_type
(Boolean)on_demand_options.capacity_reservation_options
Optional:
usage_strategy
(String)spot_options
Optional:
allocation_strategy
(String)instance_interruption_behavior
(String)instance_pools_to_use_count
(Number)maintenance_strategies
(Attributes) (see below for nested schema)max_total_price
(String)min_target_capacity
(Number)single_availability_zone
(Boolean)single_instance_type
(Boolean)spot_options.maintenance_strategies
Optional:
capacity_rebalance
(Attributes) (see below for nested schema)spot_options.maintenance_strategies.capacity_rebalance
Optional:
replacement_strategy
(String)termination_delay
(Number)tag_specifications
Optional:
resource_type
(String)tags
(Attributes List) (see below for nested schema)tag_specifications.tags
Required:
key
(String)value
(String)Import is supported using the following syntax:
$ terraform import awscc_ec2_ec2_fleet.example <resource ID>