- 最新
- 投票最多
- 评论最多
Ref: https://repost.aws/knowledge-center/ecs-task-environment-variables
"ResourceInitializationError: failed to download env files: file download command: non empty error stream"
You might face issues when you pass environment variables to your Amazon ECS tasks due to the following reasons:
Your Amazon ECS task execution role doesn't have the required AWS Identity and Management (IAM) permissions. There are issues with your network configuration. Your application is unable to read the environment variable. The format of variable in the container definition is incorrect. The environment variable isn't automatically refreshed. To troubleshoot the errors for Amazon ECS tasks that fail to start, use the AWSSupport-TroubleshootECSTaskFailedToStart runbook. Then, refer to the relevant troubleshooting steps for your issue.
It could also be linking wrong security group to the service or attaching internet gateway to route table . Check if public ip is enabled on ECS
相关内容
- AWS 官方已更新 10 个月前
- AWS 官方已更新 2 年前