rowanu / boc-updates

All the AWS updates you need, in one place

Home Page:https://bigorange.cloud/updates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BigOrange.Cloud/Updates

Keeping up with AWS updates is hard, so I created BigOrange.Cloud/Updates to do it for me.

Before this, the best way I'd found was piping the various RSS feeds in to my Slack (and I'm not the only one), but that's no fun.

Items that have appeared since you last visited will be shown in bold, so you know what's new.

Architecture

Sources

Planned

Layers

Components are deployed via CloudFormation (and SAM) as layers, so that dependencies are managed cleanly.

Note that the CloudFront Distribution is managed separately, as it fronts multiple applications.

Deploy

Data

Updates are stored as items in a DynamoDB table.

make data.template

Scrapers

make scrapers.template

API

This site uses a API Gateway HTTP API.

make scrapers.template

Site

Infrastructure

make site.template

Application

This website follows the Immutable Web Apps standard. The steps to deploy are:

  1. Build the site
  2. Inject configuration variables
  3. Sync the site contents
  4. Update the cache-control on index.html
npm install
NODE_ENV=production npm run build
export API=<ENDPOINT_URL>
sed -i "s~INSERT_API~${API:-API_NOT_SET}~g" dist/index.html
aws s3 sync dist/ s3://$SITE_BUCKET/updates/
aws s3 cp s3://$SITE_BUCKET/updates/index.html \
  s3://$SITE_BUCKET/updates/index.html --metadata-directive REPLACE --cache-control no-cache

Development

Environment variables are not injected in to the index.html in development, they're sourced from environment variables.

To run the front-end locally:

VUE_APP_API=$API
npm run serve

Testing

All tests (for functions and front-end) live in /tests:

npm run test:unit
npm run test:unit:watch

About

All the AWS updates you need, in one place

https://bigorange.cloud/updates

License:MIT License


Languages

Language:JavaScript 47.6%Language:Vue 26.4%Language:Makefile 14.9%Language:TypeScript 5.3%Language:HTML 5.0%Language:CSS 0.9%