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 Answer
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
answered a year ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions