aws opensearch/elasticsearch in vpc private subnet times out after cognito redirection

0

nginx server redirects to cognito and authentication is successful but redirect to the elasticsearch URL times out. Both the EC2 and opensearch are in the same VPC, same security group. Opensearch is in private subnet, nginx EC2 is in public subnet. All other troubleshooting steps in user pool, user identity pool, opensearch cognito config including IAM roles/policies looks right to me. What am I missing? Please let me know for more details. Thanks for your help.

1 個回答
0

Hi,

Please read this medium post a read it carefully following all the steps ( I have written the post 6 months ago).

https://medium.com/p/1f0b784cab3b

Let me know!

profile pictureAWS
已回答 1 年前
  • Thanks for sharing. We got rid of cognito. However, if the ES is placed in VPC, how do we upload data or send a POST request from outside of VPC. Seems instance profile auth or any http signing request fails by timing out. I could access the kibana dashboard using nginx proxy. But ES just redirects to the root so we are able to upload data to the ES API.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南