'Access AWS OpenSearch's Dashboard through API Gateway

I'm trying to setup AWS OpenSearch(AWS version of ElasticSearch) and access its dashboard through API Gateway. In this way, I think I can enforce authentication in API Gateway level, and make sure the dashboard is only accessible from API Gateway using resource based policy or IP based policy with proxy ec2.

I'm posting this question to check if this makes any sense before starting the setup works. Has anyone have configured OpenSearch in this way? Do you see any potential problem?

Thanks,



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source