admin管理员组文章数量:1390775
We have an AWS OpenSearch cluster with cognito userPool/identityPool integrated with it. So when we go to access the dashboard, it takes us to cognito login page, where we login and gain access to the dashboard. This part of the set up is fine.
Now, we want our lambda function to interact with openSearch, for reading and writing into various indices. We are thinking of using "client_credentials" authentication flow (provided by cognito) to authenticate our requests from the lambda function.
The challenge is, for users to login, the OAuthFlow should be "code" and for lambda functions to authenticate, the OAuthFlow should be "client_credentials" (Machine-to-Machine authentication). But apparently, these two flows cannot be selected for a single appClient, as is evident in the error shown below:
So, first of all, is this the right practice? I mean trying to use cognito to authenticate our lambda function against openSearch. If yes, then what should the set up look like?
Please advise.
版权声明:本文标题:amazon web services - AWS OpenSearch-Cognito authenticationauthorization for Lambda functions - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744754304a2623366.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论