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: support adding auth provider for AppSync Events after creating an api #33714

Open
2 tasks
tmokmss opened this issue Mar 9, 2025 · 1 comment
Open
2 tasks
Labels
@aws-cdk/aws-appsync Related to AWS AppSync effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@tmokmss
Copy link
Contributor

tmokmss commented Mar 9, 2025

Describe the feature

It'd be great if EventApi has a public method to add auth provider. (e.g. EventApi.addAuthProvider.)

Use Case

Sometimes we want to create resources required for auth (e.g. Cognito UserPool) after the creation of event API. For example, constrcutA contains an AppSync Events API and constructB contains a cognito user pool, and constructB has depdendency on constructA. Currently it is difficult to achieve because EventApi expects all the resources to configure auth provider is available when it is defined by the authorizationConfig construct prop.

Proposed Solution

add EventApi.addAuthProvider(AppSyncAuthProvider) method.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.181.0

Environment details (OS name and version, etc.)

macOS

@tmokmss tmokmss added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Mar 9, 2025
@github-actions github-actions bot added the @aws-cdk/aws-appsync Related to AWS AppSync label Mar 9, 2025
@pahud
Copy link
Contributor

pahud commented Mar 10, 2025

Yes, this makes sense to me and follow similar patterns to other CDK constructs. Thank you and we welcome PRs.

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Mar 10, 2025
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 effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

2 participants