terraform-aws-ecs-fargate-task-definition
terraform-aws-ecs-fargate-task-definition copied to clipboard
The given value is not suitable for child module variable "containers" defined at .terraform/modules/test/variables.tf:47,1-22: all list elements must have the same type.
module "td" { source = "../../" name_prefix = "multiple-containers"
containers = [ module.container-definition-1.json_map_object, module.container-definition-2.json_map_object, ] }
Also ran into this issue. It seems the module is unable to support multiple container definitions.
Running into the same issue here as well.
Workaround
download module in local and change containers variable type to any
variable "containers" { type = any description = "Container definitions to use for the task. If this is used, all other container options will be ignored." default = [] }
use local module
Updated as @mhrznamn068 suggested in version 1.0.32.
See #56 - I was able to deploy Datadog Agent as sidecar using this method.