Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 1.33 KB

README.md

File metadata and controls

59 lines (46 loc) · 1.33 KB

Infastructure

Overview

  • CloudFormation templates used to deploy infastructure on AWS.
  • GitHub action runs on push to main branch.
    • deploy-lambda runs on change in app/src folder.
      • Runs lambda unit tests, builds lambda package then deploys.
    • deploy-assets runs on change in assets folder.
      • Syncs image assets folder with s3 bucket.

Architecture Diagram

AWS Architecture Diagram

Parameter Store

  • Create two secure string parameters in Paramater Store
  • One for app details, these should be set from following the Strava Api steps
{
  "client_id": "",
  "client_secret": "",
  "code": "",
  "athelete": {
    "id": ""
  }
}
  • One for token details, these will be filled in when the lambda first runs.
{
  "expires_at": "",
  "access_token": "",
  "refresh_token": ""
}

SES verified email/domain

Add a verified domain and a verified email in SES

Lambda environment variables

Name Reason
TARGET_EMAIL Verified email to send to
SEND_EMAIL Verified email to send from
ATHLETE_ID Strava athlete id
ASSET_URL Path to hosted icon assets