Skip to content

Latest commit

 

History

History

cdk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hosting Go Pot

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: Go pot deployemnt diagram

Deploying example infrastructure

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.

Installing dependencies

For this example to work you will need the following installed:

Deploying the infrastructure

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