# Setup AWS Batch 1. Create a Compute Environment https://aws.amazon.com/getting-started/hands-on/run-batch-jobs-at-scale-with-ec2-spot/ 2. Create AWS Batch Queue(s) https://aws.amazon.com/getting-started/hands-on/run-batch-jobs-at-scale-with-ec2-spot/ 1. Update IAM Role trust policy: https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html 1. Allow propeller's IAM Role to passRole: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html 3. Update Admin Config: ```yaml flyteadmin: roleNameKey: "eks.amazonaws.com/role-arn" queues: executionQueues: # The name of the job queue from AWS Batch - dynamic: "tutorial" attributes: - default workflowConfigs: - tags: - default ``` 4. Update propeller config: ```yaml plugins: aws: batch: roleAnnotationKey: eks.amazonaws.com/role-arn region: us-east-2 tasks: task-plugins: enabled-plugins: - aws_array default-for-task-types: container_array: aws_array ``` 5. Retrieve a launchplan's execution file: ```bash flytectl --config ~/.flyte/flytectl.yaml get launchplan -p flytesnacks -d development core.control_flow.map_task.my_map_workflow --version 64de460a657141927b8867a181b92d82e14aa832 --execFile ~/map_wf.yaml ``` 6. Fill in `iamRoleARN` (mandatory for AWS Batch) and `kubeServiceAcct` (optional if you use Identity )