Terraform template for deploying VPC, Subnets, EC2, RDS & more


Rijul_Sahu

August, 2020


Developing AWS terraform template for CI/CD deployment.

Applicable to all processes operating in AWS cloud domain and wants to automate their cloud resource deployment.




You can find source code here, https://github.com/rijulsahu/vpc-2subnets-ec2-rds

Description

The client, a leading European multinational online food-delivery service based in Berlin, Germany. The company operates in 40+ countries internationally in Europe, Asia, Latin America and the Middle East and partners with 500,000+ restaurants, wanted to deploy their MMM(Market Mix Model) for multiple geography.

They faced challenges with their existing resource deployment techniques which were manual in nature.

They wanted to develop a holistic CI/CD solution for their DevOps team and automate the deployment process.


Challenges

The key challenges faced in this process were:

  1. Time-consuming and manual cloud resource deployment.
  2. Dependency on multiple IT vendors.
  3. No previous DevOps process implemented.
  4. Inability to match ETAs.

Solution

With the aim of reducing the end-to-end time spent on manual and time-consuming activities in the AWS cloud resource deployment process.

I designed and developed AWS terraform template which launches 1 VPC, 2 subnets inside the VPC followed by launching EC2 instances and RDS.

This simplified and automated the AWS cloud resource deployment process so that multipe teams can use cloud resources and can work accordingly.

My counterpart IT team also deployed interactive website on the launched EC2 instances which runs the MMM model.


Benefits

Efforts in designing and implementing this solution led to:

  1. In-house knowledge development – no dependency on vendor.
  2. Enabled DevOps CI/CD (continuous implementation / continuous deployment) working model.
  3. Removed manual intervention – error-free delivery.