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
| 归档时间: |
|
| 查看次数: |
3890 次 |
| 最近记录: |