gpt4 book ai didi

amazon-web-services - 如何在 terraform 中设置 AWS ECS 的 enable_execute_command 值?

转载 作者:行者123 更新时间:2023-12-05 01:59:36 29 4
gpt4 key购买 nike

我是这样设置的

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

最佳答案

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

关于amazon-web-services - 如何在 terraform 中设置 AWS ECS 的 enable_execute_command 值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67698391/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com