AWS ElasticSearch — Bastion server for accessing Kibana.

Creating an Nginx reverse proxy server in the same VPC public subnet

NGINX reverse proxy Architechture.
Nginx Reverse Proxy Architecture

Creating a Bastion server in the same VPC public subnet

Bastion Server Architecture

What is a Bastion Host?

What is SSH Tunneling? or What is Port Forwarding vis SSH?

Setup AWS bastion Host in a public subnet

Choose the ubuntu server
configure the instance and make sure it attached to the public subnet of the VPC
You should have a server now running with the above configuration
ES is in the private subnet of the VPC
Host Bastion-tunnel
HostName 52.xx.xxx.xx
User ubuntu
IdentitiesOnly yes
IdentityFile ~/Downloads/ashu-personal.pem
LocalForward 9200 vpc-medium-elastic-itabcropnjgu2cio2565ctemvy.ap-southeast-1.es.amazonaws.com:80
Host Bastion-tunnel
# The name of SSH tunnel could be your own choice
HostName 52.xx.xxx.xx
# the public ip address of the Bastion Server
User ubuntu
# User name is "ubuntu" as we are using the ubuntu server
IdentitiesOnly yes
# Enabling the authorisation via ssh private keyfile
IdentityFile ~/Downloads/ashu-personal.pem
# Location of the identity file
LocalForward 9200 vpc-medium-elastic-itabcropnjgu2cio2565ctemvy.ap-southeast-1.es.amazonaws.com:80# localForward 9200 (port to be operated on the localsystem)
# vpc adddress without the https
# 80 or 443 for HTTP or HTTPS

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store