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
@MikeRee Have you found any solution for this? I have the same issue. I'm going to use a custom lambda authorizer function which is exported from another stack. It seems !Ref does not work with !ImportValue.
No, for the moment I have removed authorizers for content from S3. Would be nice if someone had a solution to this. Feel like this package, as important as it is for serverless, is not being maintained.
@MikeRee I had the same problem and eventually found a workaround. Not the most elegant of solutions, but works and is consistent.
I ran a Serverless deploy, went to my CloudFormation stack and looked for the Logical ID of my authorizer. E.g., for an authorizer called demo-authorizer the Logical ID was DemoDashauthorizerApiGatewayAuthorizer. I then was able to successfully use this in my configuration, like so:
Based on mine, I imagine the Logical ID for your authorizer will be something like AuthDashprodDashauthUserApiGatewayAuthorizer but you're probably better off checking against your stack.
I'm trying to figure out how to leverage an existing authorizer, as I do with all my lambda's, for my serverless S3 proxy.
I have tried this:
and this:
Neither work.
Any way someone could help me out and we could get the documentation updated to help show this scenario?
Thanks,
Mike
The text was updated successfully, but these errors were encountered: