This folder contains an example configuration for hosting go-pot
. As part of this repository contains an example infrastructure for how this might look like:
Warning
This is an example architecture, Not something that should be used as is in a real production environment. Certain elements (like secrets) are not secureley stored as part of the CDK code
This example uses aws cdk to handle the deploying the infrastructure given above.
For this example to work you will need the following installed:
- Docker
- Node.js (Reccomended istallation (via nvm)[https://github.com/nvm-sh/nvm])
- Npm (Automatically installed with Node.js in most cases)
- Go lang (Version 1.21 or higher)
In order to deploy this example architecture you will need to:
- Authenticate with AWS
- Bootstrap the cdk environment
- Run
npm run cdk -- diff --context="MetricsServerPassword=[CHANGE THIS TO A PASSWORD]"
and check the resources it is going to create - Run
npm run cdk -- deploy --context="MetricsServerPassword=[CHANGE THIS TO A PASSWORD]" --all
- Look in AWS to find where pots have been deployed and visit them in your browser to see that they work