Closed ferhatys closed 3 months ago
Just remove tomap()
, see code in examples/complete directory.
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
We're passing a
map(any)
of integrations into the module for setting the API GW integrations. However, Terraform is trying to infer the type of the items inside the map and is enforcing the same structure. So we can't have one integration where we pass alambda_arn
and another one where we pass theintegration_uri
without thelambda_arn
for example.Versions
Module version 2.2.2:
Terraform version: 1.6.2
Provider version(s):
aws 5.37.0
Reproduction Code [Required]
Steps to reproduce the behavior:
Expected behavior
terraform plan
is executed successfully.Actual behavior
terraform plan
fails with the following message.Terminal Output Screenshot(s)
Additional context