Hello, I am trying to implement AppSync with a Cog...
# help
l
Hello, I am trying to implement AppSync with a Cognito UserPool primary authorization mode (no x-api-key which seems to be the default mode) I have found this example from the SST documentation: https://docs.serverless-stack.com/constructs/AppSyncApi#using-cognito-user-pool But not sure what the
userPool
object is and comes from (as a value). When i look into the CDK
IUserPool
interface i am affraid to have to collect and build this massive object! I hope we can do something from the Auth construct return value to build this object. Do you know if it is possible? I didn't find any example of a AppSync + Cognito User Pool Authorization mode example on the web. If we could simply do a
userPool.attachPermissionsForAuthUsers([api]);
like for API Gateways it would be really nice!
I finally found a property directly from SST !
userPool.cdk.userPool
(could be usefull to use it from the documentation instead of just
userPool
i think)
f
@Ludovic VUE thanks for pointing it out.
Updated the doc!