Skip to content

Create infrastructure in AWS for web-app using Terraform/Terragrunt

Notifications You must be signed in to change notification settings

OlesYudin/IaC-cicd-with-AWS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password generator application

In this repository you can find project, that create infrastructure for AWS cloud provider using tarrafrom and terragrunt tool.

Project tools

  • Terraform as a tool for IaC
  • Terrgrunt as a wrapper for terraform
  • AWS as cloud provider
    • ECR as registry for docker image
    • ECS as a service for for working application
    • CodeBuild as a tool for CI\CD integration
    • s3 as a service for storage remote state for terraform
  • GitHub as SCM service

Environment

  • dev - test configuration for developer
  • prod - configuration for production

Modules

  • s3 - module for creating s3 bucket. Bucket can be use as place for storage archive of codepipeline
  • ecr - module that create ECR repository for storage docker images
  • init-build - module thar create local initial docker image and push it to AWS ECR
  • cluster - module that create Network infrastructure and ECS fargate cluster for web-application
  • codebuild - module that create CD in project (run new ECS cluster after developer make change in application)
  • sns - module that create notification after codebuild finish deploying new cluster (FOR FUTURE, NOW NOT WORKING)

Variables

Link to variables show for example in dev environment, but you can find variables for prod environment in this link

Network scheme

Scheme of network

Initial build

Scheme of network

CI/CD scheme

Scheme of network

Application

Single page application (SPA) that generate pseudo random password that can be use as a password for different social network

Option Value
OS Alpine Linux v3.15
PHP v7.2
Port HTTP (80)
Image Docker hub

About

Create infrastructure in AWS for web-app using Terraform/Terragrunt

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published