Recently, I’ve been looking for AWS project ideas to complement my studying for the Solutions Architect and to polish my resume, but didn’t want to do a generic one for once, I wanted to build a solution that would actually solve a personal problem, or at least bring a quality of life improvement.
I found this seemingly simple project of a serverless CRUD API using the following services :
- API Gateway for routing and request handling
- Lambda for serverless compute
- DynamoDB for NoSQL storage
They suggested some use cases, and one of them was a workout logger.
That’s when I thought : “That’s exactly what I need, a place to log and track my training performance.”
Especially now that I picked up powerlifting, a sport that requires proper programming and load optimization for long term progress.
For those who don’t know, powerlifting is a sport that consists of three attempts at maximal weight on three lifts: squat, bench press, and deadlift.
I started by designing the following pipeline :

This pipeline will cost you nothing (~$0/month) at low volume.
Let’s build.#
First, create a DynamoDB table with on-demand billing (pay-per-request).
As I will log a maximum of around 50 sets a week, it will essentially cost $0 at this scale.
After creation, I added a Global Secondary Index (GSI), it’s a secondary index that allows to query a table using a different partition key and sort key from the ones defined on the base table, the main table is partitioned by block, you can think of a block as a training phase of 4 to 12 weeks.
What this GSI will allow me to do is to query the table using another attribute, in this case I chose the date.
Next, create the Lambda Python function, for the handler code I added helpers that will take care of integrating all the constraints and specifications that I already had in my existing program sheet (type of exercise, number of sets, reps, RPE, notes…).
The handler receives the sets via API Gateway, validates them and writes them to DynamoDB using batch writer + helpers.
Now that it is created and deployed, update the auto-generated Lambda execution role by attaching the AmazonDynamoDBFullAccess policy to grant the function permission to interact with DynamoDB .
Without it, Lambda can’t write our entries to DynamoDB.
Note : If you want to be more granular with your permissions for tighter security, you can replace the full access policy with a more restrictive one that only allows writing (e.g.
BatchWriteItem).
For the API Gateway, create a REST API, with a /workout resource, and a POST method, which is what will be used by the Google Sheets script to send data to the pipeline.
For the integration type, select the Lambda function created earlier and enable Lambda proxy integration.
Lambda proxy integration passes the raw HTTP request to Lambda, and Lambda will return a response to the Gateway (e.g. status code, headers, body…)
Deploy the API for the first time, select New Stage, and name it (e.g. prod).
Note the Invoke URL, it should look something like this:
https://<api-id>.execute-api.<region>.amazonaws.com/prodLet’s add API key authentication. Create a key and save the secret value for later. Go to usage plans, create a new one, name it and add the stage you deployed, then go to Associated API keys and add the API key.
Go back to the POST /workout method request settings and check API Key Required, save and re-deploy the API selecting the same stage as earlier.
Before proceeding to the next step, you can use curl to test if everything is working so far.
Craft a request, Here is the one I used as a reference :
curl -X POST https://<api-id>.execute-api.<region>.amazonaws.com/prod/workout \
-H "x-api-key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
data here
}'Examine the curl response, as well as check that the item has been added to the DynamoDB table.
Finally, to integrate Sheets into the pipeline, I had Claude write a simple Google Apps Script bound to the sheet.
Google Apps Script is a JavaScript-based platform built into Google Workspace that lets you automate and extend Google products like Sheets, Docs, and Gmail.
It adds a custom menu directly in the UI, with two main options: log workout and clear already-logged rows.

When logging, the script reads the filled rows, packages them into a request, and sends them to API Gateway.
Rows that are successfully submitted turn green, making it easy to know what’s been recorded.

Congratulations, the pipeline is now complete!
What’s next ?#
Once you have accumulated enough data, the real value of storing it in DynamoDB becomes apparent. It can be scanned and loaded using pandas (Python library) for analysis, no more spreadsheet formula headaches.
With data analysis, you’ll be able to track metrics and detect trends.
For example, here is a simple plot of my topsets load over 2 blocks of training :

Feel free to drop any questions or feedback in the comments, and thanks for reading.
