Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to IaC and Serverless deployments #553

Open
m-triassi opened this issue Jun 30, 2022 · 0 comments
Open

Migrate to IaC and Serverless deployments #553

m-triassi opened this issue Jun 30, 2022 · 0 comments
Assignees
Labels
dev ops Deals with CI/CD and infrastructure task This issue represents a task belonging to a story

Comments

@m-triassi
Copy link
Contributor

m-triassi commented Jun 30, 2022

Description

Currently infrastructure for the site is not defined in any sort of specification. It runs on AWS and is managed by an external service, Laravel Forge.

This means that the application is provisioned on a fixed size EC2 instance, resulting on a constant bill based off the instance size. Due to the low traffic nature of the application it would more cost effective to use serverless technologies (Lambda + Aurora) to host the site. This would roughly half the cost, assuming consistent, low traffic.

Possible Implementation

Use Bref to run the application code on a lambda function.

(Ideally) Write a Cloud Formation specification that matches this blog post, in some way. With the Bref config syntax, it should be possible to define this as a resource in the config file allowing it to spin up with the rest of the application stack.

  • In the event that a CloudFormation Specification is unavailable / unworkable, spin up the instance by hand 🤮...

Connecting a Bref configured serverless application is detailed here in the documentation

Add an S3 bucket to the resources as well to store public assets (such as character art for future features).

Out of scope

N/a

Requirements / Restrictions

Bill should be lower than current costs shown in the AWS billing console, or as low as possible according to AWS Pricing Calculator.

@m-triassi m-triassi added the task This issue represents a task belonging to a story label Jun 30, 2022
@m-triassi m-triassi self-assigned this Jun 30, 2022
@m-triassi m-triassi added the dev ops Deals with CI/CD and infrastructure label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev ops Deals with CI/CD and infrastructure task This issue represents a task belonging to a story
Projects
None yet
Development

No branches or pull requests

1 participant