Mounting EFS to AWS Fargate using Terraform - PlatformTaskDefinitionIncompatibilityException error:

后端 未结 1 1065
旧时难觅i
旧时难觅i 2021-02-20 15:14

I\'m receiving this curious error message

PlatformTaskDefinitionIncompatibilityException: The specified platform does not satisfy the task definition’s required capabil

1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-20 16:08

    You simply require to upgrade your ecs service to latest version

    resource "aws_ecs_service" "service" {
      platform_version = "1.4.0"
      launch_type      = "FARGATE"
      ...
    }
    

    efs feature is only available on the latest version

    When you don’t specify platform_version, it will default to LATEST which is set to 1.3.0 which doesn’t allow efs volumes.

    0 讨论(0)
提交回复
热议问题