Giter Site home page Giter Site logo

hnasar / backstage-on-aws Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rbogle/backstage-on-aws

0.0 0.0 0.0 496 KB

cdk application to deploy backstage as a container on AWS Fargate(ECS) with Aurora-postgresql DB

Home Page: https://rianbogle.com/backstage-on-aws

Python 100.00%

backstage-on-aws's Introduction

Backstage Infrastructure

This project uses CDK to deploy a containerized version of your backstage instance along with the required infrastructure in into a AWS account, to host your own Backstage based service. It creates two independent stacks which deploy pipelines, infrastructure, and app image containers to AWS. It is assumed you have more than a passing familiarity with:

  • CDK
  • AWS
  • Backstage
  • Docker
  • Python

WARNING! Deploying these stacks to AWS will incur costs!

Versions

If you are looking for the orgininal version of this cdk stack without the use of pipelines see the original branch in this repo.

Prerequisites

you will need to have at least the following installed and configured:

  • python3
  • aws cli
  • aws cdk

and you will need to have your backstage application code in a separate repo from this one.

The backstage stack and pipeline

This stack creates multiple environments within a ECS Fargate cluster along with Aurora postgres dbs for persistence, and puts those behind application load balancers with a custom domain name. Finally it builds a codepipeline called the backstage-app-pipline which builds and deploys a new container image based on commits to a separate backstage repo where the backstage app code resides and triggers an ECS deployment update. Once this cdk stack is deployed, you only need to update your backstage application code to update the current running application.

The infrastructure pipeline

The infra pipeline stack creates a codepipeline to both update itself and to deploy the backstage stack described above. In this way this set of infrastructure code is self-updating and self-healing, and requires no manual intervention after the initial manual deployment of the infra-pipeline stack.

Diagram

Image of Architecture

Documentation

To Do

  • Move config file into cdk context
  • Create bootstrap scripts
  • Move app-buildspec.yml back to app repo?
  • Remove aws integration user and use an ECS role for AWS auth.
  • add dynamic route53 domain creation in the backstage-stack.
  • Add creation of ECR repository to the backstage-stack.
  • add Code* notification and connection creation to backstage-stack.

backstage-on-aws's People

Contributors

fabiomsouto avatar rbogle 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.