AWS Builder Center
From Zero to Live Portfolio: My First Workshop as an AWS Student Builder Group Leader

From Zero to Live Portfolio: My First Workshop as an AWS Student Builder Group Leader

By Piyush Trivedi — Group Leader, AWS Student Builder Group, Pune Institute of Computer Technology (PICT) My first event as an AWS Student Builder Group Leader was an exciting hands-on journey into building a live portfolio using Amazon S3, AWS Lambda, and DynamoDB. A great experience of learning, leadership, and helping others turn cloud concepts into real-world projects. A memorable start to this journey!

A portfolio that loads is nice. A portfolio that loads, counts every visitor, and writes you a fresh tagline on request is something else, because you refresh the page, watch the number move, and realise the thing behind it is a stack you deployed yourself. Getting every participant to that moment was the design goal of my first event as an AWS Student Builder Group Leader. I'm Piyush Trivedi, a Computer Engineering student at Pune Institute of Computer Technology (PICT) and the Group Leader of our AWS Student Builder Group. My interest in cloud started with a frustration: watching a single Lambda invocation add 800 ms of latency to a real-time API in the middle of a demo. That sent me down the serverless rabbit hole, and it is why I wanted our group to start with something every student could see working. This was my first event as a Group Leader. This article walks through how the workshop was built, the exact steps participants followed, what tends to break, and what I would change before the next one.

The Problem: First Cloud Workshops Lose People at Step Three

Most beginner cloud sessions fail in one of two ways. Either they are slides about services nobody touches, or they are hands-on labs where one broken setting at step three leaves half the room stuck while the other half waits. I wanted something in between: every participant ends the session with their own public URL, their own name on it, and a working backend, in a single sitting, on a brand-new AWS account.
The constraints were tight. Participants arrive with only a freshly created account (email verified, region set to US East (N. Virginia),  us-east-1 ) and a  PortfolioStarter.zip . There is one runbook, one room, and no time to debug fifty different environments.

The "Unlock": Decide What Participants May Not Touch

The biggest design decision was not a service choice. It was deciding what participants are not allowed to edit. Phase 1 of the runbook lists exactly what to personalize (name, role, bio, skills, projects, contact links, and the photo) and exactly what to leave alone:  style.css  and  counter-function.js . The two API URLs in  script.js  stay empty until the end.
The second design choice was a built-in diagnostic. If the organiser's tagline URL is wrong or missing, the page falls back to a default line: "Builds things. Ships them. Breaks production occasionally." Seeing that line tells a participant (and me) instantly that the tagline URL is broken, with no console debugging required.

Architecture Overview

The workshop is a five-phase pipeline. The frontend is three static files and a photo in an S3 bucket. When the page loads,  script.js  makes two calls: a  POST  to the participant's own  /counter  endpoint (API Gateway → Lambda → DynamoDB) and a request to a shared  /tagline  endpoint hosted by the organizers. Because the counter backend lives in each participant's account, every participant touches storage, compute, an API layer, and IAM, which is the whole serverless loop in one afternoon.
Fig. 1. What each participant deployed (numbers match the request order)



Fig. 2. The five runbook phases and the checkpoint participants verify before moving on



The AWS services we used, and why


Service
Role in the workshop
Why this choice
Amazon S3
Hosts  index.html ,  style.css ,  script.js  and the photo via static website hosting
No server to manage; a public URL in minutes. The website endpoint is HTTP only, which I flag as a limitation below
Amazon DynamoDB
Table  VisitorCounter , partition key  id  (String), one item:  id = visits ,  count = 0 
A counter is a single key-value item, so a table with no sort key is all it needs
AWS Lambda
 counter-function  on Node.js 20.x increments and returns the count
Runs only when someone visits the page; the participant pastes the starter code and deploys
IAM (inline policy)
Lets the function's execution role call  dynamodb:UpdateItem  on  VisitorCounter 
The function only updates one item, so that is the only permission it gets (least privilege)
API Gateway (HTTP API)
Route  POST /counter  on stage  $default  with auto-deploy, plus CORS
Gives the browser an HTTPS endpoint to call Lambda. HTTP APIs are the simpler, lighter option for a single route



Implementation Walkthrough

Phase 2: Host the website on S3

1. Create the bucket. Name it  portfolio-firstname-lastname , region  us-east-1 . Uncheck Block all public access and acknowledge the warning; everything else stays default.
2. Upload only four files:  index.html ,  style.css ,  script.js ,  your-photo.jpg . Do not upload  counter-function.js ; that file belongs in Lambda, not in a public bucket.
3. Enable static website hosting: Properties → Static website hosting → Edit → Enable → Host a static website → index document  index.html .
4. Add the bucket policy (Permissions → Bucket policy), replacing  YOUR_BUCKET_NAME  with the real bucket name:

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*"
}
]
}



Open the bucket website endpoint. The site should load, but the counter and tagline should not work yet. The runbook says so explicitly, because a beginner who sees a dead counter assumes they made a mistake. It is expected at this point, and stating it up front keeps people from changing things that are already correct.

Phase 3: Build the visitor counter backend

1. DynamoDB: create table  VisitorCounter  with partition key  id  (String) and no sort key. Then Explore table items → Create item with  id = visits  and a Number attribute  count = 0 .
2. Lambda: create  counter-function  on Node.js 20.x (newer versions of this workshop will offer Node.js 22.x). Delete the sample code, paste the contents of  counter-function.js , and Deploy.
3. IAM: Configuration → Permissions → open the execution role → Add permissions → Create inline policy. Service DynamoDB, action  UpdateItem , resource  VisitorCounter. 

{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": "dynamodb:UpdateItem",
"Resource": "arn:aws:dynamodb:us-east-1:YOUR_ACCOUNT_ID:table/VisitorCounter"
}]
}


4. Test the function with a test event ( { "count": 1 } ) and run it. The expected result is a  200  response with body  {"count":1} .
Fig. 3. Lambda test run: statusCode 200 and body {"count":1}


Look at the bottom of that screenshot: the run reports a duration of 837.01 ms but a billed duration of 1134 ms. That is a first invocation on a brand-new function, which is a cold start in action. If you want to go deeper on why that happens and how to predict it, I wrote about it in my  case study on predictive Lambda pre-warming , where we cut simulated cold starts by 40%.

Phase 4: Expose it with API Gateway

1. Create an HTTP API with  counter-function  as the integration.
2. Add the route: method  POST , resource path  /counter , integration target  counter-function . Keep stage  $default  with Auto Deploy enabled, then Create.
Fig. 4. The route configuration: POST /counter → counter-function


3. Configure CORS: allowed origin  * , allowed header  content-type , allowed methods  POST  and  OPTIONS . Save and deploy.
Fig. 5. CORS configured on the HTTP API


4. Copy the Invoke URL from Stages. With the  $default  stage there is no stage name in the path, so the final URL looks like  https://xxxxx.execute-api.us-east-1.amazonaws.com/counter .
One detail from that CORS panel is worth teaching: when CORS is configured on the API itself, API Gateway ignores any CORS headers the Lambda function returns. Our function also sends  Access-Control-Allow-Origin: *  in its response (visible in Fig. 3), but the API-level setting is the one the browser actually sees. Two places can define CORS; only one wins.

Phase 5: Connect the frontend

Open  script.js  and replace the empty strings:
const COUNTER_API_URL = "https://xxxxx.execute-api.us-east-1.amazonaws.com/counter";
const TAGLINE_API_URL = "<organiser-provided URL ending in /tagline>";


Save, then upload the new `script.js` to S3 and replace the existing file. The final test is three checkmarks: the website loads, the counter increases, and the AI tagline generates.
Fig. 6. The default tagline. If a participant sees this, the tagline URL is broken



CLI alternative

Everything in Phase 2 and the DynamoDB part of Phase 3 can be scripted. I kept the workshop in the console so beginners could see each setting, but this is the same flow for anyone who wants to repeat it quickly ( policy.json  is the bucket policy above)

aws s3 mb s3://portfolio-firstname-lastname --region us-east-1
aws s3api put-public-access-block --bucket portfolio-firstname-lastname \
--public-access-block-configuration BlockPublicAcls=false,IgnorePublicAcls=false,BlockPublicPolicy=false,RestrictPublicBuckets=false
aws s3api put-bucket-policy --bucket portfolio-firstname-lastname --policy file://policy.json
aws s3 website s3://portfolio-firstname-lastname --index-document index.html
aws s3 cp index.html s3://portfolio-firstname-lastname/ # repeat for style.css, script.js, your-photo.jpg
aws dynamodb create-table --table-name VisitorCounter \
--attribute-definitions AttributeName=id,AttributeType=S \
--key-schema AttributeName=id,KeyType=HASH --billing-mode PAY_PER_REQUEST
aws dynamodb put-item --table-name VisitorCounter \
--item '{"id":{"S":"visits"},"count":{"N":"0"}}'


Where Builders Get Stuck, and How the Runbook Handles It

The most interesting failure mode in this design is not a participant mistake. It is the shared dependency. Every participant's page calls the same organiser-hosted  /tagline  endpoint, so if that one URL breaks, everyone's page falls back to the default tagline at the same moment. The fallback line is what makes that visible immediately, and it is why the runbook flags it in red. Everything else in the runbook is per-participant, so a failure there stays local to one account.
Beyond that, the runbook is built around a handful of predictable failure points. This is the troubleshooting table I use as a reference while participants work:
Symptom
Likely cause
Check / fix
Website endpoint shows 403 Forbidden
Block public access still on, bucket policy not saved, or  YOUR_BUCKET_NAME  never replaced
Re-open Permissions; confirm the policy's Resource ARN matches the bucket name exactly
Website endpoint shows 404
Index document not set, or  index.html  not uploaded
Properties → Static website hosting → index document  index.html ; check the upload list
Photo is a broken image
Photo renamed (e.g.  my-photo.png ) but the  <img src>  in  index.html  still points to  your-photo.jpg 
Update the  src  to the new filename and re-upload  index.html 
Lambda test returns an access error
Inline policy missing, or resource is not the  VisitorCounter  table ARN
Re-check the role's inline policy: action  UpdateItem , resource the table
Counter still dead after Phase 5
Old  script.js  still in S3, URL missing  /counter , or CORS not saved
Re-upload  script.js  (Replace), then hard-refresh the page
Default tagline appears
 TAGLINE_API_URL  empty or mistyped
Re-paste the organiser's URL exactly, then re-upload  script.js 


Cost & Performance Considerations

Every service in this stack is pay-per-use, so a workshop-scale portfolio costs very little. There are no servers or provisioned resources to leave running. Here is what each service charges for, so participants know what to watch after the event:
Service
What you are billed for
Workshop-scale note
S3
Storage and GET requests
A few small files, so storage is negligible
Lambda
Requests and execution duration (the first run above billed 1134 ms)
One tiny invocation per page view
API Gateway (HTTP API)
Requests per million
One request per page view
DynamoDB
Read/write capacity and storage
One item, one update per visit
Free Tier terms differ by account type and change over time, so check the current AWS Free Tier page for your account before relying on them.
Two limitations to be upfront about: the S3 website endpoint serves HTTP only (no HTTPS), and the bucket policy plus CORS  *  are deliberately open for teaching. Both are fine for a classroom portfolio and neither is what I would ship for a real product.

Results: What Every Participant Ends With

The workshop is built so that success is checkable at every step, not just at the end. By the final test, each participant has the following, and each one can be verified without asking me:
Deliverable
How to verify it
A public portfolio website
The S3 bucket website endpoint opens in any browser and shows the participant's own name, bio and photo
A working backend
The Lambda test event returns a  200  response with body  {"count":1} 
A live API
 POST /counter  on the HTTP API returns the updated count; the invoke URL ends in  /counter 
A visitor counter that persists
The  count  attribute on item  id = visits  in  VisitorCounter  goes up on every refresh
An AI-generated tagline
The page shows a generated tagline instead of the default "Builds things. Ships them. Breaks production occasionally."


Lessons Learned

• Say "this should fail" out loud. Phase 2 ends with a counter that does not work. Labelling that as expected prevented the panic that otherwise makes people start changing things.
• Restrict what people can edit. Naming the two files nobody touches did more for reliability than any extra explanation.
• Build the diagnostic into the product. The default tagline doubles as a health check for the tagline URL.
• The re-upload step is easy to forget. Editing  script.js  locally changes nothing until it is replaced in S3. I will make it its own line on the final slide.
• Test the shared pieces before anyone arrives. The organiser's tagline endpoint is the one thing all participants depend on, so I check it from a fresh browser before the session starts.

What's next

• Put CloudFront in front of the bucket for HTTPS, and lock the bucket down so only CloudFront can read it.
• Tighten CORS from  *  to the site's own origin once the domain is fixed.
• Define the whole stack as code (AWS SAM or CDK) so a participant can redeploy it in one command.
• Add a custom domain with Route 53 so the portfolio has a name worth putting on a résumé.

How AWS Builder Center and My SBG Fit What Comes Next

I'm working toward a career in serverless performance and applied machine learning. My next technical step is extending the cold-start work into an online, continual-learning setup so the model adapts to workload shifts without waiting for an offline retrain. Running a workshop like this is the other half of that goal: if I can teach a room of first-year builders to deploy a working serverless stack, I understand the stack well enough to explain it.
AWS Builder Center and our Student Builder Group give me two things I couldn't get alone: a place to publish the messy middle of a project, and peers who build in parallel and compare notes. My advice to anyone who wants to lead their first event: write the runbook before you plan the slides, give every step a checkpoint, and tell people which failures are expected.
If you ran, or plan to run, a hands-on workshop for your own campus, I'd like to hear what broke for you. Share it in the comments and I'll reply with what I'd try.

Resources

Piyush Trivedi, Group Leader, AWS Student Builder Group, PICT. Questions or ideas? Leave a comment below.
Find me on  LinkedIn 
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article