如何在terraform中设置AWS ECS的enable_execute_command值?

Mia*_*ian 4 amazon-web-services amazon-ecs terraform

我是这样设置的

resource "aws_ecs_service" "foo" {
  name             = "bar"
  cluster          = "hoge"
  desired_count    = 1
  launch_type      = "FARGATE"
  platform_version = "1.4.0"

  task_definition = "some_arn"

  network_configuration {
    # something
  }

  deployment_controller {
    type = "ECS"
  }

  enable_execute_command = true

  tags = local.tags

  lifecycle {
    ignore_changes = [
    ]
  }
}
Run Code Online (Sandbox Code Playgroud)

地形图显示

Error: Unsupported argument
An argument named "enable_execute_command" is not expected here.
Run Code Online (Sandbox Code Playgroud)

那么如何使用呢?

文档中我发现它与deployment_controller. 是版本问题吗?

terraform的版本是0.14.x,aws提供商的版本是3.29.x

Mar*_*cin 6

AWS 提供商版本3.29。请至少升级到 3.34。