/serverless-recordings-site

Publish a website of the Foundation's meeting recordings

Primary LanguagePython

Serverless Generator for Zoom Recordings Site

Development Environment Set-up

See Starting a Python-oriented Serverless-dot-com Project for details.

  1. git clone serverless-template && cd serverless-template
  2. PIPENV_VENV_IN_PROJECT=1 pipenv install --dev
  3. pipenv shell
  4. nodeenv -p # Installs Node environment inside Python environment
  5. npm install --include=dev # Installs Node packages inside combined Python/Node environment
  6. exit # For serverless to install correctly in the environment...
  7. pipenv shell # ...we need to exit out and re-enter the environment
  8. npm install -g serverless # Although the '-g' global flag is being used, Serverless install is in the Python/Node environment

Set Up Public Key for Signing URLs

  1. Create a public/private key pair (see Create a key pair for a trusted key group)
  • openssl genrsa -out private_key.pem 2048
  • openssl rsa -pubout -in private_key.pem -out public_key.pem
  1. Go to AWS Systems Manager → Parameter Store → Create parameter (ensure you are in the correct AWS region)
  • Name: /serverless-recordings-site/dev/private-key
  • Description: Private key of key-pair for signing URLs
  • Tier: Standard
  • Type: Secure String
  • KMS Key Source: My current account
  • KMS Key ID: alias/aws/ssm
  • Value: paste private key data
  • Tag: Purposeserverless-recordings-site
  1. In config.yml, assign the name to the PRIVATE_KEY_PARAM_STORE_NAME attribute
  2. In config.yml, paste the public key value into the PUBLIC_KEY_ENCODED attribute as a YAML multi-line string. Note well this caution.