VJ Mali

Terraform allows us to define multiple modules & this helps us writing clean & modularized infrastructure scripts containing large number of resources required for our application.

Root Module :
Any Terraform configuration available at the root directory is considered as root module, we can invoke child modules from the root modules by passing the required child input variables.

Child Module :
Any Terraform configurations available at subdirectories are considered as child modules and these modules can be included in the root module.

Sample Multi-Module Terraform Config Structure :

  1. Adding VPC Module from TF Registry:

--

--

AWS CodePipeline is a continuous delivery service, it helps us to automate the release process for our application.

Steps to create a pipeline for SpringBoot WAR.

  1. Source Stage : Define the source stage of your pipeline with your source code repository. Create new connections for external code repository like GitHub…

--

--

AWS Elasticache is a fully managed in memory cache service. It supports two open sources compatible engines which are Redis & Memcached.

AWS RDS is Relation Database Service using which we can launch relational database(like MySQL, PostgreSQL, MariaDB, Amazon Aurora, Oracle & MS SQL Server) instances.

Steps to launch Elasticache & RDS into private subnet of VPC :

  1. SecurityGroups to allow ingress communication to Cache & database instances as mentioned below
security group for RDS

--

--

VJ Mali

VJ Mali

AWS Certified Cloud Solution Architect, I publish stories on Cloud Security, IAC, Serverless, Terraform, CI/CD with cloud services, Cloud Networking and more...