3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Amazon OpenSearch ServiceをVPC内に配置して、Cloud9でProxyしてOpenSearch Dashboardにアクセスする

Posted at

Cloud9のNginxのプロキシサーバを立てるだけです。すいません。

default.conf
server {
    listen       80;
    server_name  localhost;

    location / {
        proxy_pass https://vpc-***.***.es.amazonaws.com/;
    }
}

Nginx起動

docker run \
 -p 8080:80 \
 -v `pwd`/default.conf:/etc/nginx/conf.d/default.conf:ro nginx

PreviewメニューのPreview Running Applicationを選択

ログインダイアログが出るのでログイン

URLの末尾に_dashboardsを追加

https://*****.vfs.cloud9.*****.amazonaws.com/_dashboards

理論上は、VPC内に立ち上げたWebアプリであれば、何でもアクセスできると思われます。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?