Strava activity post-processing in AWS Lambda:
- rename activities
- hide certain activities from home
- save Strava activity info in DynamoDB
- Create AWS Lambda with public function URL: Lambda function URLs
- Create Strava app and point to AWS Lambda URL: How to Create Strava App
- Subscribe webhook for Strava app: Strava Webhook
- Login with the app to authorize getting Strava webhook events for yourself: Strava Authentication
Lambda function requires these enviroment variables:
- ACTIVITY_DYNAMO_DB - dynamo DB with activityId as key
- OAUTH_TOKEN_DYNAMO_DB - dynamo DB with userId as key
- DYNAMO_DB_REGION - dynamo DB region
- STRAVA_CLIENT_ID - your Strava client ID
- STRAVA_CLIENT_SECRET - your Strava client secret
- STRAVA_VERIFY_TOKEN - your Strava verify token
Call webhook URL with activity ID:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"object_id": 8366231264, "owner_id": 43239612}' \
WEBHOOK_URL/webhook