I am currently using a Stepfunction to orchestrate some tasks being run some of which are on AWS Fargate. The Fargate tasks require environment variables that we store in S3 and most of the time it runs fine but I have a low failure rate (>0.1%) where a single fargate task fails with the message:
"ResourceInitializationError: failed to download env files: file download command: non empty error stream: RequestCanceled: request context canceled caused by: context deadline exceeded"
Has any one seen this message before and does any one know the cause ?