(AppSync): The "Cannot read property 'length' of undefined" error is displayed when the defaultAuthorization setting. #8666
Labels
@aws-cdk/aws-appsync
Related to AWS AppSync
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
needs-triage
This issue or PR still needs to be triaged.
❓ General Issue
I'm trying the AppSync authentication settings.
I want to use Cognito authentication. No additional authentication settings are required.
A similar setup worked in version 1.45.0, but did not work in 1.46.0 .
The Question
Sample code 1 outputs error 1.
The sample code has been modified for the breaking changes in version 1.46.0 It is.
feat(appsync): enhances and completes auth config #7878
Sample code 2 works fine.
When setting defaultAuthorization, it seems that you need to specify additionalAuthorizationModes, even if you don't need the additional authentication features.
(1.45.0 is additionalAuthorizationModes to There was no need to configure it.
Is this behavior expected?
Sorry if I missed the documentation.
I was confused by the configuration, so I created an Issue.
Environment
The text was updated successfully, but these errors were encountered: