You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run sam local start-lambda, I get the following error:
Error: An error occurred when attempting to link two resources: Could not use the value each.value.authorizer.enabled as a destination for the source resource module.api.aws_apigatewayv2_route.route. The expected destination resources should be of destination resource type aws_apigatewayv2_authorizer. using id property.
This is due to a TF conditional statement, I would expect SAM CLI to download the TD module used and correctly interpret conditional instead, it thinks the conditional is the input value.
Steps to reproduce:
Observed result:
Expected result:
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
OS:
sam --version:
AWS region:
# Paste the output of `sam --info` here
Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Description:
I have followed the suggested setup using: https://github.com/aws-samples/aws-sam-terraform-examples/blob/main/ga/api_gateway_v1/tf-resources/functions.tf
When I run sam local start-lambda, I get the following error:
This is due to a TF conditional statement, I would expect SAM CLI to download the TD module used and correctly interpret conditional instead, it thinks the conditional is the input value.
Steps to reproduce:
Observed result:
Expected result:
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: