sundaycrafts / sample_cicd_terraform_aws_codedeploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

This is a example of CI/CD environment implemented with:

And this also explains Three-Tier Architecture (official doc).

Prerequisites

  • Configure the backend of infrastructure/main.tf to your environment.
  • Setup Terraform Cloud.
  • Configure the on.push.branches of Github workflow to your main branch.
  • set environment for Github workflow for CodeDeploy.
  • Create custom ami to run Node.js app and PM2.

Expected Behaviour

Terraform

When you push main branch:

  • detect infrastructure changes.
  • Terraform Cloud make change remotely.

CodeDeploy

When you push main branch:

  • Create S3 object of app and deploy from Github workflow.
  • Run scripts/* following appspec.yml's directive to deploy.

About


Languages

Language:HCL 98.3%Language:JavaScript 0.7%Language:Shell 0.5%Language:Makefile 0.5%