aws-sam-cli
aws-sam-cli copied to clipboard
Token Authorizer doesn't get linked if FunctionPayloadType missing in template.yml
There is an issue where Token Authorizers are not being linked correctly if the FunctionPayloadType is missing in the template.yml file. This is due to the default value for authorizer_type being initialized as token, but then compared against TOKEN in a case-sensitive manner.
https://github.com/aws/aws-sam-cli/blob/c3e154763d758e17ffa86eb7d05ddcc9b27a095e/samcli/lib/providers/sam_api_provider.py#L321-L324
Thanks for reporting this, we'll prioritize a fix for this within the team's capacity.
This fix has been released as part of the SAM CLI 1.119.0 release. Closing issue.
⚠️COMMENT VISIBILITY WARNING⚠️
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.