4

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 ?

  • I don't have the rep to make a comment. I'm seeing the same error when creating a Fargate Service on ECS using CDK and pulling an env file from S3. It works just fine if I create the ECS service by hand in the console, but I can't see where what I'm doing in CDK is producing different results. The task role and execution role are identical. – Accidental Admin Jan 27 '21 at 04:49

0 Answers0