Quick Start
Installation
To get a project set up with Totem:
-
Ensure all Prerequisites are met
Prerequisites
- Bootstrap AWS and GitHub accounts so they can talk to each other
- Bootstrap GitHub Organization account with Private NPM token
-
Create a Totem config file in the root of the project
.totemrc.yaml version: 1name: test-static-sitetargets:not-prod:type: awsenv: aws://1234567890/us-west-2profile: melt_not-prod_adminservices:site:type: static-sitedescription: An Example Static Sitebuild:type: github-actionsautoSynth: truebranches:develop:target: target://not-prodservices:site:domains:- zoneName: meltdev.com- recordName: test-site.developcommands:- yarn install- yarn buildartifactDir: dist -
Create a CDK state file in the root of the project
cdk.json {"app": "npx @meltmedia/totem synth","output": "cdk.out"} -
Synthesize the necessary CDK and GitHub files
Terminal window npx aws-cdk synth
Deploy
Your app is now ready to be deployed. When you commit your changes and push to GitHub, GitHub Actions will build and deploy your app