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

Create GraphQLClient using user_pool rather than api_key in appsync-lambda-bedrock-async-stream-subscription-cdk #2587

Open
alindsharmasimply opened this issue Jan 15, 2025 · 0 comments

Comments

@alindsharmasimply
Copy link

Kindly suggest how can the following pattern be used if the application uses COGNITO_USER_POOLS for auth.

Image

In the current codebase the lambda uses APPSYNC_API_KEY in the GraphQLClient headers as follows:
const graphQLClient = new GraphQLClient(process.env.APPSYNC_ENDPOINT!, { headers: { 'x-api-key': process.env.APPSYNC_API_KEY! }, });

I understand using the User_Pool for appsync auth. Beyond that, what can be done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant