Skip to content

Commit

Permalink
Fix issue where a map of any is converted in a map of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
joecks committed Feb 12, 2024
1 parent 70f74e4 commit df3d2a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions generic/lambda/invoke/variables.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
variable "create_payload" {
description = "The payload that is sent to the lambda function during creation"
type = map(string)

# can not use map(any) because all values witll be converted to the same type, in this case string
type = any
}

variable "delete_payload" {
description = "The payload that is sent to the lambda function during deletion"
type = map(string)
# can not use map(any) because all values witll be converted to the same type, in this case string
type = any
}


variable "function_arn" {
description = "The ARN of the lambda function that is invoked with the create and delete json payload"
type = string
Expand Down

0 comments on commit df3d2a1

Please sign in to comment.