View a markdown version of this page

InstanceLaunchTemplate - AWS Batch

InstanceLaunchTemplate

The instance launch configuration for an Amazon ECS Managed Instances capacity provider. Specifies the instance profile, networking, instance selection constraints, capacity pricing model, storage, and monitoring settings.

Contents

ec2InstanceProfileArn

The Amazon Resource Name (ARN) of the Amazon EC2 instance profile for the managed instances. The instance profile must use the AmazonECSInstanceRolePolicyForManagedInstances managed policy with a trust policy for ec2.amazonaws.com.

Type: String

Required: Yes

networkConfiguration

The network configuration for the managed instances. Specifies the VPC subnets and security groups where instances are launched.

Type: ManagedInstancesNetworkConfiguration object

Required: Yes

capacityOptionType

The capacity pricing model for the managed instances. Valid values:

  • ON_DEMAND (default) — On-Demand pricing.

  • SPOT — Spot Instances, which can provide significant cost savings for fault-tolerant workloads.

Type: String

Required: No

capacityReservations

The capacity reservation configuration for the managed instances. Use this to target On-Demand Capacity Reservations or Reserved Instances for predictable capacity and cost optimization.

Type: CapacityReservationRequest object

Required: No

fipsEnabled

Specifies whether FIPS 140-2 validated cryptographic modules are enabled on the managed instances. Not available in all Regions.

Type: Boolean

Required: No

instanceMetadataTagsPropagation

Specifies whether instance tags are accessible from the instance metadata service (IMDS). If not specified, instance tags are not accessible from IMDS.

Type: Boolean

Required: No

instanceRequirements

The instance type requirements for the capacity provider. Use this to constrain which Amazon EC2 instance types Amazon ECS can launch. If not specified, all available instance types are eligible.

Type: InstanceRequirementsRequest object

Required: No

localStorageConfiguration

The local storage configuration for the managed instances. If not specified, instance store volumes are not available to containers.

Type: ManagedInstancesLocalStorageConfiguration object

Required: No

monitoring

The level of CloudWatch monitoring for the managed instances. Valid values are BASIC and DETAILED.

Type: String

Required: No

storageConfiguration

The storage configuration for the managed instances. Configures the root EBS volume size. If not specified, the service uses the default EBS volume size for the instance type.

Type: ManagedInstancesStorageConfiguration object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: