ManagedInstancesProvider - AWS Batch
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

ManagedInstancesProvider

The configuration for an Amazon ECS Managed Instances capacity provider. This object is required when creating a compute environment with computeResources.type set to ECS_MANAGED_INSTANCES.

Contents

infrastructureRoleArn

The Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf. This role must have a trust policy for ecs.amazonaws.com. You must have the iam:PassRole permission for this role with the condition iam:PassedToService: ecs.amazonaws.com.

Type: String

Required: Yes

instanceLaunchTemplate

The instance launch configuration for the Amazon ECS Managed Instances capacity provider. Contains networking, instance profile, instance requirements, capacity type, storage, and monitoring configuration.

Type: InstanceLaunchTemplate object

Required: Yes

infrastructureOptimization

The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.

Type: InfrastructureOptimization object

Required: No

propagateTags

Specifies whether tags on the capacity provider are propagated to the Amazon EC2 instances it launches. Valid values:

  • CAPACITY_PROVIDER — Propagates tags to instances.

  • NONE (default) — Does not propagate tags to instances.

Type: String

Required: No

See Also

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