From df3d2a156e3d5dec2db705178cb221e35c0f6d60 Mon Sep 17 00:00:00 2001 From: Simon Joecks Date: Mon, 12 Feb 2024 17:03:17 +0100 Subject: [PATCH] Fix issue where a map of any is converted in a map of strings --- generic/lambda/invoke/variables.tf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/generic/lambda/invoke/variables.tf b/generic/lambda/invoke/variables.tf index 7404a2a1..bd512dbc 100644 --- a/generic/lambda/invoke/variables.tf +++ b/generic/lambda/invoke/variables.tf @@ -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