Skip to content

Magiscribe/Magiscribe-Infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magiscribe Infrastructure

TypeScript Terraform AWS


Table of Contents

Overview

This repository contains the CDKTF projects for provisioning the infrastructure for Magiscribe project, including but not limited to the API and client applications.

Architecture

Architecture

Zero to Hero

Pre-requisites

Infrastructure Deployment

The following steps are required to setup the project for deployment to AWS.

! IMPORTANT ! As of writing, the both the bootstrap and infrastructure stacks are on Node 20.x. This is because the CDKTF project has not been updated to support Node 22.x. This will be updated in the future. See here for the build targets supported by the CDKTF project.

Bootstrap Deployment

The bootstrap setup is a one-time setup that will create the necessary resources in AWS to manage the remote state of the Terraform projects. For more information on this, see Terraform Remote State.

  1. Check into /bootstrap directory
cd bootstrap
  1. Specify the environment you want to deploy to. This can be done by setting the NODE_ENV environment variable. The default value is development.
export NODE_ENV=production
  1. Deploy the bootstrap stack
cdktf deploy

Infrastructure Deployment

  1. Check into /infrastructure directory
cd infrastructure
  1. Specify the environment you want to deploy to. This can be done by setting the NODE_ENV environment variable. The default value is development.
export NODE_ENV=production
  1. Deploy the networking stack. Note, the first time you run this, it will create a new Hosted Zone in Route 53. You will need to point your domain registrar to the name servers provided by Route 53 so that it can manage the DNS records and auto-verify the SSL certificates created by this project.
cdktf deploy network
  1. Deploy the database stack
cdktf deploy network data
  1. Deploy the app stack
cdktf deploy network data app
  1. Deploy the client stacks
cdktf deploy network data app client-app client-dashboard

About

The set of Terraform CDK projects to provision all Magiscribe infrastructure

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •