无法从 ECS Fargate 任务访问 EFS
Unable to access EFS from ECS Fargate task
正在尝试启动使用 EFS 卷的 Fargate 任务。
从 ECS 控制台启动任务时,出现此错误:
ResourceInitializationError: failed to invoke EFS utils commands to set up EFS volumes: stderr: Failed to resolve "fs-019a4b2d1774c5586.efs.eu-west-1.amazonaws.com" - check that your file system ID is correct, and ensure that the VPC has an EFS mount target for this file system ID. See https://docs.aws.amazon.com/console/efs/mount-dns-name for more detail. Attempting to lookup mount target ip address using botocore. Failed to import necessary dependency botocore, please install botocore first. : unsuccessful EFS utils command execution; code: 1
文件系统 ID 正确。我已经从同一个 VPC 中的 ec2 实例挂载卷,一切都很好。
我不知道在哪里为 ECS 服务或任务指定出站规则。 See image
提前致谢。
正如@MarkB 所述,我已经编辑了出站规则并将端口 2049 (NFS) 添加到 EFS 安全组,它工作正常。
正在尝试启动使用 EFS 卷的 Fargate 任务。
从 ECS 控制台启动任务时,出现此错误:
ResourceInitializationError: failed to invoke EFS utils commands to set up EFS volumes: stderr: Failed to resolve "fs-019a4b2d1774c5586.efs.eu-west-1.amazonaws.com" - check that your file system ID is correct, and ensure that the VPC has an EFS mount target for this file system ID. See https://docs.aws.amazon.com/console/efs/mount-dns-name for more detail. Attempting to lookup mount target ip address using botocore. Failed to import necessary dependency botocore, please install botocore first. : unsuccessful EFS utils command execution; code: 1
文件系统 ID 正确。我已经从同一个 VPC 中的 ec2 实例挂载卷,一切都很好。
我不知道在哪里为 ECS 服务或任务指定出站规则。 See image
提前致谢。
正如@MarkB 所述,我已经编辑了出站规则并将端口 2049 (NFS) 添加到 EFS 安全组,它工作正常。