Reputation: 1075
I set it this way
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 = [
]
}
}
The terraform plan showed
Error: Unsupported argument
An argument named "enable_execute_command" is not expected here.
Then how to use it?
From the document I found it's the same layer as deployment_controller
. Is it the version problem?
The terraform's version is 0.14.x, aws provider's version is 3.29.x
Upvotes: 4
Views: 5898
Reputation: 238169
AWS provider vesrion of 3.29
is too old. Please upgrade to at least 3.34.
Upvotes: 6