Let's suppose I have an AWS Step function, a state of which is a Batch Job, associated with a Docker image.
Is there more efficient way to associate a Docker image with a state, instead of using a Batch Job (
arn:aws:states:::batch:submitJob.sync
)? Creating an activity looks too complex.Is there any realistic way to exchange data between such "dockerized" states, except AWS-based file storages, object DBs, Docker volumes sharing on a separate instance? For example transferring STDOUT content of containerized apps between states?
How application-level errors can be transferred(reported) from Docker container to the corresponding state to invalidate it, mark it as "failed"? Does that depend on the app's return value?