This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::Batch::ComputeEnvironment 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.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "CapacityOptionType" :String, "CapacityReservations" :CapacityReservations, "Ec2InstanceProfileArn" :String, "FipsEnabled" :Boolean, "InstanceMetadataTagsPropagation" :Boolean, "InstanceRequirements" :InstanceRequirements, "LocalStorageConfiguration" :ManagedInstancesLocalStorageConfiguration, "Monitoring" :String, "NetworkConfiguration" :ManagedInstancesNetworkConfiguration, "StorageConfiguration" :ManagedInstancesStorageConfiguration}
YAML
CapacityOptionType:StringCapacityReservations:CapacityReservationsEc2InstanceProfileArn:StringFipsEnabled:BooleanInstanceMetadataTagsPropagation:BooleanInstanceRequirements:InstanceRequirementsLocalStorageConfiguration:ManagedInstancesLocalStorageConfigurationMonitoring:StringNetworkConfiguration:ManagedInstancesNetworkConfigurationStorageConfiguration:ManagedInstancesStorageConfiguration
Properties
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.
Required: No
Type: String
Allowed values:
ON_DEMAND | SPOT | RESERVEDUpdate requires: Replacement
-
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.
Required: No
Type: CapacityReservations
Update requires: No interruption
Ec2InstanceProfileArn-
The Amazon Resource Name (ARN) of the Amazon EC2 instance profile for the managed instances. The instance profile must use the
AmazonECSInstanceRolePolicyForManagedInstancesmanaged policy with a trust policy forec2.amazonaws.com.rproxy.govskope.ca.Required: Yes
Type: String
Update requires: No interruption
FipsEnabled-
Specifies whether FIPS 140-2 validated cryptographic modules are enabled on the managed instances. Not available in all Regions.
Required: No
Type: Boolean
Update requires: Replacement
-
Specifies whether instance tags are accessible from the instance metadata service (IMDS). If not specified, instance tags are not accessible from IMDS.
Required: No
Type: Boolean
Update requires: No interruption
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.
Required: No
Type: InstanceRequirements
Update requires: No interruption
LocalStorageConfiguration-
The local storage configuration for the managed instances. If not specified, instance store volumes are not available to containers.
Required: No
Type: ManagedInstancesLocalStorageConfiguration
Update requires: No interruption
Monitoring-
The level of CloudWatch monitoring for the managed instances. Valid values are
BASICandDETAILED.Required: No
Type: String
Update requires: No interruption
NetworkConfiguration-
The network configuration for the managed instances. Specifies the VPC subnets and security groups where instances are launched.
Required: Yes
Type: ManagedInstancesNetworkConfiguration
Update requires: No interruption
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.
Required: No
Type: ManagedInstancesStorageConfiguration
Update requires: No interruption