Useful link on AWS env and Docker
- bdata3
- Mar 22, 2020
- 1 min read
Updated: Feb 17, 2022
In this short post, I've collected useful links for EC2 improvements such as how to configure the local discs, how to add UI if you need it or How to add VPN client to connect to the customer's network.
Adding local disks:
How to add UI to EC2 machine (Ubuntu and Linux2):
and the .vnc/xstartup you can take from:
the tunnel:
ssh -L 5901:localhost:5901 -i "the_pem_file" ubuntu@AWS_MACHINE
or you can follow aws on EC2 Linux 2:
Use openVPN:
Install Docker
Or
install docker-compose:
The easiest way run:
sudo pip3 install docker-compose
Or use this link:
Build a basic Flask + MySQL docker (including docker-compose)
When you created vpc and you can't connect to the ec2 in it (it's probably because of the routing table see inside):

Comments