- Newest
- Most votes
- Most comments
The issue you're encountering is related to how AWS Step Functions interacts with AWS Batch, particularly for jobs using Fargate (ecsProperties jobs). Step Functions automatically adds container overrides to the job submission, which is not compatible with ecsProperties jobs.
To resolve this, you need to use a different approach when submitting Fargate-based AWS Batch jobs from Step Functions. Instead of using the arn:aws:states:::batch:submitJob.sync resource, you should use arn:aws:states:::batch:submitJob.sync-2.
Here's how you can modify your "Run Batch Job" state:
"Run Batch Job": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync-2", "Parameters": { "JobName.The issue you're encountering is related to how AWS Step Functions interacts with AWS Batch, particularly for jobs using Fargate (ecsProperties jobs). Step Functions automatically adds container overrides to the job submission, which is not compatible with ecsProperties jobs. To resolve this, you need to use a different approach when submitting Fargate-based AWS Batch jobs from Step Functions. Instead of using the `arn:aws:states:::batch:submitJob.sync` resource, you should use `arn:aws:states:::batch:submitJob.sync-2`. Here's how you can modify your "Run Batch Job" state: ```json "Run Batch Job": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync-2", "Parameters": { "JobName.$": "$.jobName", "JobQueue.$": "$.jobQueue", "JobDefinition.$": "$.jobDefinition", "ArrayProperties": { "Size.$": "$.number_of_batches" }, "Parameters": { "table_id.$": "$.table_id", "run_timestamp.$": "$.run_timestamp", "table_path_s3.$": "$.table_path_s3", "batches_s3_path.$": "$.batches_s3_path", "is_training_run.$": "$.is_training_run" } }, "Next": "Prepare Athena Query" }
The submitJob.sync-2 resource is designed to work with Fargate-based jobs and doesn't add the problematic container overrides. This should allow your Step Function to submit the Batch job successfully and wait for its completion before moving to the next state.
This approach addresses your need to wait for the batch job to complete before proceeding to insert results into the Athena table, without running into Lambda timeout issues.
Remember that when using submitJob.sync-2, Step Functions will wait for the job to complete before moving to the next state, which aligns with your workflow requirements.quot;: "$.jobName",
"JobQueue.The issue you're encountering is related to how AWS Step Functions interacts with AWS Batch, particularly for jobs using Fargate (ecsProperties jobs). Step Functions automatically adds container overrides to the job submission, which is not compatible with ecsProperties jobs.
To resolve this, you need to use a different approach when submitting Fargate-based AWS Batch jobs from Step Functions. Instead of using the arn:aws:states:::batch:submitJob.sync resource, you should use arn:aws:states:::batch:submitJob.sync-2.
Here's how you can modify your "Run Batch Job" state:
"Run Batch Job": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync-2", "Parameters": { "JobName.$": "$.jobName", "JobQueue.$": "$.jobQueue", "JobDefinition.$": "$.jobDefinition", "ArrayProperties": { "Size.$": "$.number_of_batches" }, "Parameters": { "table_id.$": "$.table_id", "run_timestamp.$": "$.run_timestamp", "table_path_s3.$": "$.table_path_s3", "batches_s3_path.$": "$.batches_s3_path", "is_training_run.$": "$.is_training_run" } }, "Next": "Prepare Athena Query" }
The submitJob.sync-2 resource is designed to work with Fargate-based jobs and doesn't add the problematic container overrides. This should allow your Step Function to submit the Batch job successfully and wait for its completion before moving to the next state.
This approach addresses your need to wait for the batch job to complete before proceeding to insert results into the Athena table, without running into Lambda timeout issues.
Remember that when using submitJob.sync-2, Step Functions will wait for the job to complete before moving to the next state, which aligns with your workflow requirements.quot;: "$.jobQueue",
"JobDefinition.The issue you're encountering is related to how AWS Step Functions interacts with AWS Batch, particularly for jobs using Fargate (ecsProperties jobs). Step Functions automatically adds container overrides to the job submission, which is not compatible with ecsProperties jobs.
To resolve this, you need to use a different approach when submitting Fargate-based AWS Batch jobs from Step Functions. Instead of using the arn:aws:states:::batch:submitJob.sync resource, you should use arn:aws:states:::batch:submitJob.sync-2.
Here's how you can modify your "Run Batch Job" state:
"Run Batch Job": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync-2", "Parameters": { "JobName.$": "$.jobName", "JobQueue.$": "$.jobQueue", "JobDefinition.$": "$.jobDefinition", "ArrayProperties": { "Size.$": "$.number_of_batches" }, "Parameters": { "table_id.$": "$.table_id", "run_timestamp.$": "$.run_timestamp", "table_path_s3.$": "$.table_path_s3", "batches_s3_path.$": "$.batches_s3_path", "is_training_run.$": "$.is_training_run" } }, "Next": "Prepare Athena Query" }
The submitJob.sync-2 resource is designed to work with Fargate-based jobs and doesn't add the problematic container overrides. This should allow your Step Function to submit the Batch job successfully and wait for its completion before moving to the next state.
This approach addresses your need to wait for the batch job to complete before proceeding to insert results into the Athena table, without running into Lambda timeout issues.
Remember that when using submitJob.sync-2, Step Functions will wait for the job to complete before moving to the next state, which aligns with your workflow requirements.quot;: "$.jobDefinition",
"ArrayProperties": {
"Size.The issue you're encountering is related to how AWS Step Functions interacts with AWS Batch, particularly for jobs using Fargate (ecsProperties jobs). Step Functions automatically adds container overrides to the job submission, which is not compatible with ecsProperties jobs.
To resolve this, you need to use a different approach when submitting Fargate-based AWS Batch jobs from Step Functions. Instead of using the arn:aws:states:::batch:submitJob.sync resource, you should use arn:aws:states:::batch:submitJob.sync-2.
Here's how you can modify your "Run Batch Job" state:
"Run Batch Job": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync-2", "Parameters": { "JobName.$": "$.jobName", "JobQueue.$": "$.jobQueue", "JobDefinition.$": "$.jobDefinition", "ArrayProperties": { "Size.$": "$.number_of_batches" }, "Parameters": { "table_id.$": "$.table_id", "run_timestamp.$": "$.run_timestamp", "table_path_s3.$": "$.table_path_s3", "batches_s3_path.$": "$.batches_s3_path", "is_training_run.$": "$.is_training_run" } }, "Next": "Prepare Athena Query" }
The submitJob.sync-2 resource is designed to work with Fargate-based jobs and doesn't add the problematic container overrides. This should allow your Step Function to submit the Batch job successfully and wait for its completion before moving to the next state.
This approach addresses your need to wait for the batch job to complete before proceeding to insert results into the Athena table, without running into Lambda timeout issues.
Remember that when using submitJob.sync-2, Step Functions will wait for the job to complete before moving to the next state, which aligns with your workflow requirements.quot;: "$.number_of_batches"
},
"Parameters": {
"table_id.The issue you're encountering is related to how AWS Step Functions interacts with AWS Batch, particularly for jobs using Fargate (ecsProperties jobs). Step Functions automatically adds container overrides to the job submission, which is not compatible with ecsProperties jobs.
To resolve this, you need to use a different approach when submitting Fargate-based AWS Batch jobs from Step Functions. Instead of using the arn:aws:states:::batch:submitJob.sync resource, you should use arn:aws:states:::batch:submitJob.sync-2.
Here's how you can modify your "Run Batch Job" state:
"Run Batch Job": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync-2", "Parameters": { "JobName.$": "$.jobName", "JobQueue.$": "$.jobQueue", "JobDefinition.$": "$.jobDefinition", "ArrayProperties": { "Size.$": "$.number_of_batches" }, "Parameters": { "table_id.$": "$.table_id", "run_timestamp.$": "$.run_timestamp", "table_path_s3.$": "$.table_path_s3", "batches_s3_path.$": "$.batches_s3_path", "is_training_run.$": "$.is_training_run" } }, "Next": "Prepare Athena Query" }
The submitJob.sync-2 resource is designed to work with Fargate-based jobs and doesn't add the problematic container overrides. This should allow your Step Function to submit the Batch job successfully and wait for its completion before moving to the next state.
This approach addresses your need to wait for the batch job to complete before proceeding to insert results into the Athena table, without running into Lambda timeout issues.
Remember that when using submitJob.sync-2, Step Functions will wait for the job to complete before moving to the next state, which aligns with your workflow requirements.quot;: "$.table_id",
"run_timestamp.The issue you're encountering is related to how AWS Step Functions interacts with AWS Batch, particularly for jobs using Fargate (ecsProperties jobs). Step Functions automatically adds container overrides to the job submission, which is not compatible with ecsProperties jobs.
To resolve this, you need to use a different approach when submitting Fargate-based AWS Batch jobs from Step Functions. Instead of using the arn:aws:states:::batch:submitJob.sync resource, you should use arn:aws:states:::batch:submitJob.sync-2.
Here's how you can modify your "Run Batch Job" state:
"Run Batch Job": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync-2", "Parameters": { "JobName.$": "$.jobName", "JobQueue.$": "$.jobQueue", "JobDefinition.$": "$.jobDefinition", "ArrayProperties": { "Size.$": "$.number_of_batches" }, "Parameters": { "table_id.$": "$.table_id", "run_timestamp.$": "$.run_timestamp", "table_path_s3.$": "$.table_path_s3", "batches_s3_path.$": "$.batches_s3_path", "is_training_run.$": "$.is_training_run" } }, "Next": "Prepare Athena Query" }
The submitJob.sync-2 resource is designed to work with Fargate-based jobs and doesn't add the problematic container overrides. This should allow your Step Function to submit the Batch job successfully and wait for its completion before moving to the next state.
This approach addresses your need to wait for the batch job to complete before proceeding to insert results into the Athena table, without running into Lambda timeout issues.
Remember that when using submitJob.sync-2, Step Functions will wait for the job to complete before moving to the next state, which aligns with your workflow requirements.quot;: "$.run_timestamp",
"table_path_s3.The issue you're encountering is related to how AWS Step Functions interacts with AWS Batch, particularly for jobs using Fargate (ecsProperties jobs). Step Functions automatically adds container overrides to the job submission, which is not compatible with ecsProperties jobs.
To resolve this, you need to use a different approach when submitting Fargate-based AWS Batch jobs from Step Functions. Instead of using the arn:aws:states:::batch:submitJob.sync resource, you should use arn:aws:states:::batch:submitJob.sync-2.
Here's how you can modify your "Run Batch Job" state:
"Run Batch Job": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync-2", "Parameters": { "JobName.$": "$.jobName", "JobQueue.$": "$.jobQueue", "JobDefinition.$": "$.jobDefinition", "ArrayProperties": { "Size.$": "$.number_of_batches" }, "Parameters": { "table_id.$": "$.table_id", "run_timestamp.$": "$.run_timestamp", "table_path_s3.$": "$.table_path_s3", "batches_s3_path.$": "$.batches_s3_path", "is_training_run.$": "$.is_training_run" } }, "Next": "Prepare Athena Query" }
The submitJob.sync-2 resource is designed to work with Fargate-based jobs and doesn't add the problematic container overrides. This should allow your Step Function to submit the Batch job successfully and wait for its completion before moving to the next state.
This approach addresses your need to wait for the batch job to complete before proceeding to insert results into the Athena table, without running into Lambda timeout issues.
Remember that when using submitJob.sync-2, Step Functions will wait for the job to complete before moving to the next state, which aligns with your workflow requirements.quot;: "$.table_path_s3",
"batches_s3_path.The issue you're encountering is related to how AWS Step Functions interacts with AWS Batch, particularly for jobs using Fargate (ecsProperties jobs). Step Functions automatically adds container overrides to the job submission, which is not compatible with ecsProperties jobs.
To resolve this, you need to use a different approach when submitting Fargate-based AWS Batch jobs from Step Functions. Instead of using the arn:aws:states:::batch:submitJob.sync resource, you should use arn:aws:states:::batch:submitJob.sync-2.
Here's how you can modify your "Run Batch Job" state:
"Run Batch Job": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync-2", "Parameters": { "JobName.$": "$.jobName", "JobQueue.$": "$.jobQueue", "JobDefinition.$": "$.jobDefinition", "ArrayProperties": { "Size.$": "$.number_of_batches" }, "Parameters": { "table_id.$": "$.table_id", "run_timestamp.$": "$.run_timestamp", "table_path_s3.$": "$.table_path_s3", "batches_s3_path.$": "$.batches_s3_path", "is_training_run.$": "$.is_training_run" } }, "Next": "Prepare Athena Query" }
The submitJob.sync-2 resource is designed to work with Fargate-based jobs and doesn't add the problematic container overrides. This should allow your Step Function to submit the Batch job successfully and wait for its completion before moving to the next state.
This approach addresses your need to wait for the batch job to complete before proceeding to insert results into the Athena table, without running into Lambda timeout issues.
Remember that when using submitJob.sync-2, Step Functions will wait for the job to complete before moving to the next state, which aligns with your workflow requirements.quot;: "$.batches_s3_path",
"is_training_run.The issue you're encountering is related to how AWS Step Functions interacts with AWS Batch, particularly for jobs using Fargate (ecsProperties jobs). Step Functions automatically adds container overrides to the job submission, which is not compatible with ecsProperties jobs.
To resolve this, you need to use a different approach when submitting Fargate-based AWS Batch jobs from Step Functions. Instead of using the arn:aws:states:::batch:submitJob.sync resource, you should use arn:aws:states:::batch:submitJob.sync-2.
Here's how you can modify your "Run Batch Job" state:
"Run Batch Job": { "Type": "Task", "Resource": "arn:aws:states:::batch:submitJob.sync-2", "Parameters": { "JobName.$": "$.jobName", "JobQueue.$": "$.jobQueue", "JobDefinition.$": "$.jobDefinition", "ArrayProperties": { "Size.$": "$.number_of_batches" }, "Parameters": { "table_id.$": "$.table_id", "run_timestamp.$": "$.run_timestamp", "table_path_s3.$": "$.table_path_s3", "batches_s3_path.$": "$.batches_s3_path", "is_training_run.$": "$.is_training_run" } }, "Next": "Prepare Athena Query" }
The submitJob.sync-2 resource is designed to work with Fargate-based jobs and doesn't add the problematic container overrides. This should allow your Step Function to submit the Batch job successfully and wait for its completion before moving to the next state.
This approach addresses your need to wait for the batch job to complete before proceeding to insert results into the Athena table, without running into Lambda timeout issues.
Remember that when using submitJob.sync-2, Step Functions will wait for the job to complete before moving to the next state, which aligns with your workflow requirements.quot;: "$.is_training_run"
}
},
"Next": "Prepare Athena Query"
}
The `submitJob.sync-2` resource is designed to work with Fargate-based jobs and doesn't add the problematic container overrides. This should allow your Step Function to submit the Batch job successfully and wait for its completion before moving to the next state.
This approach addresses your need to wait for the batch job to complete before proceeding to insert results into the Athena table, without running into Lambda timeout issues.
Remember that when using `submitJob.sync-2`, Step Functions will wait for the job to complete before moving to the next state, which aligns with your workflow requirements.
**Sources**
[The error occurred when calling AWS Batch (ECSProperties job) from AWS Step Functions. | AWS re:Post](https://repost.aws/questions/QUHzpyD5gGQ2ic4TJsJ-U3Hw/the-error-occurred-when-calling-aws-batch-ecsproperties-job-from-aws-step-functions)
[Discover service integration patterns in Step Functions - AWS Step Functions](https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html)
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated 5 years ago
- AWS OFFICIALUpdated 4 months ago

All of this is a complete fabrication by AI. The "submitJob.sync-2" resource doesn't exist!