Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #26

Open
mhrznamn068 opened this issue May 5, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@mhrznamn068
Copy link

mhrznamn068 commented May 5, 2022

module "td" {
source = "../../"
name_prefix = "multiple-containers"

containers = [
module.container-definition-1.json_map_object,
module.container-definition-2.json_map_object,
]
}

@bion
Copy link

bion commented Sep 14, 2022

Also ran into this issue. It seems the module is unable to support multiple container definitions.

@paambaati
Copy link

Running into the same issue here as well.

@mhrznamn068
Copy link
Author

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

@jnonino
Copy link
Member

jnonino commented Apr 20, 2023

Updated as @mhrznamn068 suggested in version 1.0.32.

@jnonino jnonino added the bug Something isn't working label Apr 20, 2023
@jnonino jnonino self-assigned this Apr 20, 2023
@jnonino jnonino moved this from 🆕 New to 🏗 In progress in CN Services - Terraform Modules Apr 20, 2023
@jnonino jnonino moved this from 🏗 In progress to 👀 In review in CN Services - Terraform Modules Apr 20, 2023
@JaredDarling
Copy link
Contributor

See #56 - I was able to deploy Datadog Agent as sidecar using this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 👀 In review
Development

No branches or pull requests

5 participants