Skip to content

Set Up from Scratch

What needs to be considered in the event of setting up the Central CDN in a totally new AWS account?

Connecting to GitHub

Whenever an origin param config value changes in the Parameter Store, a lambda function triggers the re-deployment of the CDN, thereby incorporating the change into the CDN's list of origins. The re-deployment is done via a GitHub workflow.

In order to achieve that, the lambda function must be able to connect to a pre-defined GitHub app. Therefore, this app's credentials have to be stored once per environment in the Parameter Store in region eu-central-1 as follows:

  • <envName>/deploymentTrigger/config/appId: the ID of the GitHub app
  • <envName>/deploymentTrigger/config/installationId: the ID of the installation of the GitHub app for the central-cdn repo.
    You find it e.g. in the URL of the overview page: If https://github.com/apps/the-apps-name/installations/12345678 is the URL, then 12345678 is the installation ID.
  • <envName>/deploymentTrigger/config/privateKey: the private key you created in the GitHub app

where <envName> is stage or prod.