instanceRole

The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. This parameter is required for Amazon EC2 instances types. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, <i>ecsInstanceRole</i> or arn:aws:iam::<i><aws_account_id></i>:instance-profile/<i>ecsInstanceRole</i> . For more information, see Amazon ECS instance role in the Batch User Guide.

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.