Git Product home page Git Product logo

danade002 / poppy-carts-aws-cloud-architecture Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmd-afegbua/poppy-carts-aws-cloud-architecture

0.0 0.0 0.0 74 KB

IaC code for a two-tier HA, resilient and security hardened cloud infrastructure on AWS to host a psuedo e-commerce web service and application; everything done with Terraform.

License: GNU General Public License v2.0

HCL 99.26% Shell 0.35% Python 0.39%

poppy-carts-aws-cloud-architecture's Introduction

poppy-carts-aws-cloud-architecture

Root Repo

Folder Arrangement

  • schematics: Schematics that I had time to upload. Updates are continually being made and the infra might change. Don't take thems serious.
  • terraform
    • global
      • backend: Required to implemet remote backend and locks. Creates s3 bucket and dynamoDB for backend.
      • iam_roles: Required for granular iam access controls for different departments.
    • modules
      • vpc: Creates the isolated VPC for the entire infrastructure. Two private subnets and two public subnets that can be adjusted, NAT gateway and the likes.
      • lambda: Files needed for all lambda resources to be provisioned.
      • compute_instances
        • web_app_asg: The backend instances with autoscaling groups, health checks, security groups and internal loadbalancer.
        • web_service_asg: The frontend instances with autoscaling groups, health checks, security groups and external load balancer (ALB).

Getting it to work

1. Decide whether to use a local backend or a remote backend

If you are going to be using a local back end, skip this step. Else... Navigate to poppy-carts-aws-cloud-architecture/Terraform/global/backend, open the backend.tf file and comment (#) all lines. Apparently, the code is directing terraform to use an s3 bucket and a dynamoDB that you have not created. You have to create it first, then remove the comment. To do this,

terraform init
terraform apply

Remove the comment from the backend.tf

terraform init
terraform apply

2. VPC or IAM Roles?

Root account is not a good security practise. But then let's skip the IAM and go to VPC

poppy-carts-aws-cloud-architecture's People

Contributors

mmd-afegbua avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.