How to setup Lenses on an AWS EC2 instance?
Launch Instance
Amazon Linux AMI
t2.large
.cer
.pem
chmod 400 <Your Key Name>.pem
From the AWS EC2 interface grab the instance public DNS.
Then SSH to the instance by typing:
ssh -i <Path to your Key>/<Your Key Name>.pem ec2-user@<Your instance Public DNS>
Once inside run the commands:
sudo yum update -y sudo amazon-linux-extras install docker -y sudo service docker start
and then:
sudo docker run -e LENSES_PORT=8080 -p 8080:8080 lensesio/lenses
At this stage Lenses is running inside an EC2 instance. In order to preview/interact with the Lenses environment from a browser, provide ALL TCP access to the security group attached to the instace for your IP.
On the security group appointed to the ec2 instance:
Then, access Lenses from the browser by navigating to: <Your instance publicIP>:8080
<Your instance publicIP>:8080
On this page