【问题标题】:How to set AWS ECS' enable_execute_command value in terraform?如何在 terraform 中设置 AWS ECS 的 enable_execute_command 值?
【发布时间】:2021-08-14 07:30:02
【问题描述】:

我是这样设置的

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 = [
    ]
  }
}

地形图显示

Error: Unsupported argument
An argument named "enable_execute_command" is not expected here.

那怎么用呢?

document 中,我发现它与deployment_controller 在同一层。是版本问题吗?

terraform 的版本是 0.14.x,aws provider 的版本是 3.29.x

【问题讨论】:

    标签: amazon-web-services terraform amazon-ecs


    【解决方案1】:

    3.29 的 AWS 提供商版本太旧了。请升级到至少 3.34。

    【讨论】:

    • 谢谢。确实是版本问题。
    • @Miantian 没问题。很高兴它成功了。
    猜你喜欢
    • 2018-05-16
    • 2021-05-01
    • 1970-01-01
    • 2021-12-24
    • 1970-01-01
    • 1970-01-01
    • 2019-02-02
    • 2021-10-12
    • 2020-02-05
    相关资源
    最近更新 更多