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
{{ message }}
Repository navigation
Support for IAM Policy for Lambda Authorizer (v1) #184
Appreciate you guys added few event types to support the LambdaAuthorizer, Any plans to add a event type for IAM policy response which will be compatible with REST API?
@msailes Thanks for looking into this. Currently we are using AuthPolicy for REST api and we never populated usageIdentifierKey. Is this a new breaking change?
If I need to populate this where I should get this value from?
Activity
msailes commentedon Nov 2, 2020
Hi missourian55,
Yes, there is an open PR for this response. #174
Mark
missourian55 commentedon Nov 6, 2020
Any ETA on when this will be merged and released? We love to have this soon to remove some custom implementation in our stack.
msailes commentedon Dec 31, 2020
Hi missourian55,
For a couple of reason this is proving a little annoying. In the short term I would continue to use the AuthPolicy class.
Please reply back if you have any questions.
msailes commentedon Mar 24, 2021
This has been released in version 3.8.0
missourian55 commentedon Mar 25, 2021
Just gave
IamPolicyResponsea try on Rest API. Getting below errorExecution failed due to configuration error: Unable to parse given policy: Syntax error at position (-1,-1){"principalId":"some","policyDocument":{"Version":"2012-10-17","Statement":[{"Condition":null,"Action":"execute-api:Invoke","Resource":["arn:aws:execute-api:us-east-1:123456789012:hr2mbvlnw6/some/POST/somemethod"],"Effect":"Allow"}]},"context":null}I cannot use IamPolicyResponse with REST API? Its only for Http API (API GW V2)?
msailes commentedon Mar 25, 2021
My apologies, the response required for the REST API has an additional field
"usageIdentifierKey": "{api-key}"and is a required field.I'll create a new PR.
missourian55 commentedon Mar 25, 2021
@msailes Thanks for looking into this. Currently we are using AuthPolicy for REST api and we never populated
usageIdentifierKey. Is this a new breaking change?If I need to populate this where I should get this value from?
msailes commentedon Mar 25, 2021
Do you have an example handler that you can share which exhibits this error?
missourian55 commentedon Mar 25, 2021
is it possible to share in any private mode? Otherwise I need to do lot of scrubbing to eliminate my company info
msailes commentedon Mar 25, 2021
You can contact me on my username @amazon.co.uk
missourian55 commentedon Mar 25, 2021
Done
wilerson commentedon May 21, 2021
Any ETA on merging and releasing #233 ?
msailes commentedon May 26, 2021
@wilerson we hope to release this in June.
msailes commentedon Jun 2, 2021
this has been released in v3.9.0