-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
API Endpoints often require authorization permissions, e.g. only IAM users. Ideally, AWS::Serverless::Api would also support AuthorizationType available for API Gateway.
For example, using IAM user:
Events:
Type: Api
Properties:
Path: /secrets
Method: get
AuthorizationType: AWS_IAM
Or a custom authorizer:
Events:
Type: Api
Properties:
Path: /secrets
Method: get
AuthorizationType: CUSTOM
Authorizer: <ARN_CUSTOM_AUTHORIZER>
Realize this may be challenging in referencing the custom authorizer function if not a function defined within the template though.
gertjvr, eranation, samirda, krcummings1, tomgarretty and 52 more