Based on the RFC #781, we need to implement the AWS_IAM Authorizers feature.
Requirements:
Some code areas to get started for any interested contributors:
InvokeRole as a valid property of Auth https://github.com/awslabs/serverless-application-model/blob/master/samtranslator/model/api/api_generator.py#L20AWS_IAM DefaultAuthorizer here https://github.com/awslabs/serverless-application-model/blob/master/samtranslator/model/api/api_generator.py#L321securityDefinitions if it's defined as DefaultAuthorizer or if it is specified on any of the Methods https://github.com/awslabs/serverless-application-model/blob/master/samtranslator/swagger/swagger.py#L289Is the idea that it would look something like:
Auth:
Authorizers:
AWS_IAM: some:arn:aws:1
and the serverless macro would transform that into specifying AWS_IAM for the auth type and add the policy to the resource policy on the API?
or possibly
Auth:
Authorizers:
AWS_IAM: NOT_AN_ARN
And the macro would create an IAM Role named NOT_AN_ARN and substitute that Role ARN where applicable in the previous comment?
@rhboyd check out the RFC #781
Hey @brettstack, I would like to start working on this since this feature is needed for my job.
No problem?
Absolutely! We look forward to a PR. 鉂わ笍
Hey @brettstack, My PR #827 is just ready for review!
Please go ahead 馃憤 馃槃 Thanks!
Thanks @horike37! This has been merged to develop and we'll get it out to production asap.
Great! Can't wait to release 馃槃
Released with SAM v1.11.0!
Most helpful comment
Hey @brettstack, I would like to start working on this since this feature is needed for my job.
No problem?