In my case I used the proxy pass of nginx for accessing the opensearch vpc endpoint dashboard from public This might help: https://repost.aws/knowledge-center/opensearch-dashboards-vpc-cognito