Skip to content

Commit

Permalink
Less strict sidecar container definition type (#82)
Browse files Browse the repository at this point in the history
Getting error:

`Error: Invalid value for input variable ... all list elements must have the same type.` when the list of container definitions doesnt have exactly the same keys in the map.

An alternative is to declare the whole container definition type using `object({ ... })`, but its a bit tedious to maintain.
  • Loading branch information
k1rd3rf authored Mar 1, 2023
1 parent ae0b0fa commit 0df2af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ variable "enable_execute_command" {

variable "sidecar_containers" {
description = "List of sidecar containers"
type = list(any)
type = any
default = []
}

Expand Down

0 comments on commit 0df2af7

Please sign in to comment.