Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(AppSync): Add support for custom authorization with AWS Lambda for GraphQL APIs #16846

Closed
2 tasks
ohnu opened this issue Oct 7, 2021 · 2 comments
Closed
2 tasks
Assignees
Labels
@aws-cdk/aws-appsync Related to AWS AppSync feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@ohnu
Copy link

ohnu commented Oct 7, 2021

Description

Since July 2021 there is a new authorization type introduced for GraphQL APIs https://aws.amazon.com/about-aws/whats-new/2021/07/aws-appsync-supports-custom-authorization-with-aws-lambda-graphsql-apis/
and is not exposed by the latest CDK release v1.126.0 https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-appsync.AuthorizationType.html

Use Case

We want to create our own authorization lambda (that we already use in the REST api) but is not available in the GraphQL API.

Proposed Solution

general Idea:

Include an authorization type LAMBDA in AuthorizationType
also include a lambdaConfig property in AuthorizationMode in order to provide the lambda arn

Other information

No response

Acknowledge

  • I may be able to implement this feature request
  • This feature might incur a breaking change
@ohnu ohnu added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Oct 7, 2021
@github-actions github-actions bot added the @aws-cdk/aws-appsync Related to AWS AppSync label Oct 7, 2021
@kaizencc
Copy link
Contributor

kaizencc commented Oct 7, 2021

Hi @ohnu! The PR for this feature was just merged yesterday. It should come out in CDK release v1.127.0 sometime next week. Hope that helps!

@kaizencc kaizencc closed this as completed Oct 7, 2021
@github-actions
Copy link

github-actions bot commented Oct 7, 2021

⚠️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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-appsync Related to AWS AppSync feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants