Through this article I will show you how you can install magento2 on AWS EC2 with redis cache, varnish cache and nginx for ssl termination. I am assuming