Implementation of an E-Commerce Website on AWS in an automated way using Terraform and Ansible
In another project based in a real-world scenario, I worked as Cloud Engineer using DevOps, where I created and implemented an e-Commerce MVP (Minimum Viable Product) on AWS in less than 2 hours and in an automated way using Terraform and Ansible (Infrastructure as Code — IaC).
I provisioned the infrastructure using Terraform and Ansible to automate the configuration management process, software installation and package management of the EC2 instance. I also used Magento, PHP, MySQL, and Redis to complete this project.
First, using Terraform scripts, I have created the infrastructure which is an EC2 instance (with a given number of vCPU, memory and storage to be able to host the website without any interruptions) inside a VPC.
Then, by accessing the instance remotely, I have installed in automated way, Mangeto (which is an Adobe affiliate company that is going to be our e-commerce website host), php, MySQL as a database service, Redis to manage website caches in order to improve the user experience by providing the minimum possible delays. All of the previous mentioned services were installed in our instance by using Ansible playbooks.