
No developer on call: how we gave AWS UG Delhi NCR organizers a website they can update themselves
How a volunteer-run AWS user group moved its website to a serverless setup, so organizers can publish events and photos without asking a developer.
AWS Community Builder (Developer Tools) | Full-Stack Engineer
No developer on call: how we gave AWS UG Delhi NCR organizers a website they can update themselves

Hi, I'm Sumit. I joined the AWS Community Builders program this year, and I volunteer with AWS User Group Delhi NCR . Since 2023, our group has run 11+ events, including AWS Community Days, with 37+ speakers and 1,660+ attendees. These are the events recorded on our site so far, so the real numbers keep growing.
To me, being a Community Builder is about building things the community actually uses. So I built a gift for my own user group: a new website and a small admin panel that our organizers can use to run the site without a developer.
Here is what that looks like. An organizer signs in, fills in a form for a new event, picks the speakers, uploads photos and presses Publish. A few minutes later the event is live. No Git, no terminal, no message to a developer.
How it works, in short
It is fully serverless, with no servers or databases to look after:
- Public site: a static Astro site (60+ pages), stored in a private Amazon S3 bucket and served through Amazon CloudFront.
- Admin panel: a React app on its own CloudFront distribution, protected by Amazon Cognito login with two-factor authentication. It talks to an Amazon API Gateway HTTP API backed by AWS Lambda.
- Publishing: an AWS CodeBuild project that rebuilds the site from the saved content, checks it, and uploads it only if everything passes.
- Everything as code: the whole setup is one AWS CDK app, so you can deploy the same thing in your own AWS account.
This is also my first post on AWS Builder Center. If you help run an AWS user group, a student cloud club or any meetup, the full code is public on GitHub: Sumaniac28/aws_ug_delhi_serverless . And if you're in or near Delhi NCR, join our Meetup group to hear about future events.
What you'll find in this post
- why a volunteer-run group needs a website that doesn't depend on one developer
- how the pieces fit together on AWS, and why I picked each service
- how I kept volunteer edits safe, so nobody can break the live site by mistake
- how to deploy the same setup for your own group, step by step
The problem: every update needed a developer
Our old website was a React and Vite app. All the content lived inside the source code: event details, speaker names, photos, everything. Our organizers are volunteers with day jobs, and most are not developers. So announcing the next meetup looked like this:
- The organizer sends the details to a developer.
- The developer edits the data files, adds the photos, rebuilds and deploys.
- The organizer checks the site and finds a typo.
- Back to step 2.
The same loop ran again after the event, when someone wanted to add photos and mark it as done.

It was not a code quality problem. It was a people problem:
- Updates were slow. A change waited until a developer had a free evening.
- Events stayed "Upcoming" after they happened. The site only knew an event was over if someone edited it.
- The site depended on one or two people. If they were busy or moved on, the site simply went stale.
I could have made the developer's job easier with a nicer editor or a faster deploy script, but that would still leave the developer in the loop. So I asked a different question: what would it take for an organizer to do all of this alone, safely?
What I set out to build
Before writing any code, I wrote down five rules, like a contract with the volunteers who would use the site. Every later decision came from one of them.
Rule 1: Organizers publish on their own
A volunteer should be able to create an event, add speakers and photos, and press Publish. The catch is that once a non-developer can edit the site, the site is only as safe as the checks around them. So this rule means two things: a friendly admin panel, and a backend that refuses bad input in plain English.
I wrote the content rules once, as a Zod schema, and reused it in the admin forms, the save API and the site build. Anything the form accepts, the API and the build accept too. Two rules exist only because this is a community site:
// Times must carry an offset, so "10:00" can never be ambiguous.export const istDateTime = z.iso.datetime({ offset: true });
// Online join links must never be published.const JOIN_LINK = /(zoom\.us|meet\.google\.com|teams\.microsoft\.com|teams\.live\.com|chime\.aws)/i;
function noJoinLinks(value: unknown, ctx: z.RefinementCtx) { const hit = JSON.stringify(value).match(JOIN_LINK); if (hit) { ctx.addIssue({ code: 'custom', message: `Online join links (${hit[1]}) must not be published; they go out in Konfhub emails only.`, }); }}The join-link check scans the whole document, so a private Zoom link pasted into a description can't slip through. Speakers have a
consent.publish flag too: without it, the build leaves out their photo and bio.Only invited organizers can sign in. Self sign-up is off in Cognito, and an authenticator-app code is required every time. Inviting or removing someone is a short command, not a console tour (I show it in the deploy section).
Rule 2: No servers and no database
Nothing should need patching, restarting or backing up by a volunteer. That ruled out EC2 and every kind of database. Our whole dataset is a few hundred small documents edited by a handful of people, so the content is plain JSON files in Amazon S3: one file per event, speaker, sponsor, organizer or post.
Using S3 as the store means I handle two things a database normally handles for me.
Two people saving at once. Each save is conditional on the version the editor last saw. S3 gives every object an ETag, which works as a version fingerprint. The save Lambda sends it back as
If-Match on update, or If-None-Match: * when creating, so a create never overwrites an existing item:await this.s3.send(new PutObjectCommand({ Bucket: this.bucket, Key: contentKey(collection, id), Body: JSON.stringify(data, null, 2) + '\n', Metadata: { 'edited-by': opts.editor }, // who saved this version IfMatch: opts.ifMatch, // update: the ETag you last read IfNoneMatch: opts.ifNoneMatch, // create: fail if it already exists}));// On a 412 the API answers: "Someone else changed this item since you opened it.// Reload it and re-apply your edit."If two organizers edit the same event, the second save gets a plain-English message instead of silently overwriting the first.
Undo. The content bucket is versioned, so every save and delete stays recoverable. A delete only adds a delete marker, and
DeleteObjectVersion , the permanent version, is never granted to any Lambda. The editor's name is stored on each version, so "who changed this?" has an answer.Rule 3: Cheap
My target was a monthly bill of a few hundred rupees at most. A surprise bill is a quick way to lose a treasurer's trust, so I treated cost as a design rule:
- Everything is pay-per-use. S3, CloudFront, Lambda, API Gateway, Cognito and CodeBuild cost almost nothing when nobody is using them.
- Raw uploads expire after one day. Phone photos can carry GPS data, and the resize Lambda handles them within seconds. That's a privacy rule and a cost rule in one line.
- Small Lambdas on ARM, with short log retention.
- A build can't be bought by clicking. Publish answers
409 nothing_to_publishwhen nothing was saved since the last successful build. The server enforces this, not just the button.
lifecycleRules: [ // Raw uploads can carry GPS and device data. They are processed within seconds, so a day is ample. { id: 'expire-raw-uploads', prefix: 'uploads/', expiration: Duration.days(1) },],I don't have a clean monthly figure to quote, because I run this in an AWS account that also hosts other projects. What I can say is where the money goes: S3 storage is tiny, CloudFront data transfer is the one cost that grows with visitors, CodeBuild is billed per build minute, and Cognito's Lite plan is free for the first 10,000 monthly users. I also set a budget alarm that emails every organizer, not only me. Check your first few bills.
Rule 4: Hard to break
A typo or a missing field should never turn into a broken website. The idea is separation. Saving in the admin only writes a JSON file; the website changes later, in a separate build. That gives three layers of protection:
- The admin checks every save against the schema and explains problems in plain English.
- The API checks references: it refuses an event that names a speaker or sponsor that doesn't exist, and refuses to delete a speaker that other content still uses.
- The build validates everything again, and any failure stops it before a single file is uploaded.
The third layer is just a few lines in
buildspec.yml :build: on-failure: ABORT # a failed step stops the build; the live site is untouched commands: - npm run build # validates every item with the same schema, then builds - node scripts/verify-csp.mjs # Hashed assets first, so no page ever points at a file that is not there yet... - aws s3 sync dist/_astro "s3://$SITE_BUCKET/_astro" --cache-control "public,max-age=31536000,immutable" # ...then the pages, removing files that no longer exist. - aws s3 sync dist "s3://$SITE_BUCKET" --delete --exclude "_astro/*" --cache-control "public,max-age=300" - aws cloudfront create-invalidation --distribution-id "$DISTRIBUTION_ID" --paths "/*"Least privilege is part of "hard to break" too. Each of the six Lambdas gets only the permissions its route needs. The resize function can read
uploads/* and write media/* , and nothing else. It is also triggered only by writes to uploads/ . That avoids a classic mistake: a function that writes to a bucket and is triggered by writes to the same bucket can loop forever and run up a bill.Rule 5: Rebuildable from the repo
Volunteer teams change. If the setup only lives in my head and my AWS console, the next team inherits a mystery. So all the infrastructure is code, written with the AWS CDK in TypeScript, in six independent stacks:
-
AwsugMedia: versioned content bucket, media bucket and the resize Lambda
-
AwsugSite: private site bucket, CloudFront, URL-rewrite function and security headers
-
AwsugAdmin: Cognito user pool, HTTP API and the six Lambdas
-
AwsugAdminApp: hosting for the React admin app
-
AwsugBuild: the publish build, the per-event schedule group and the nightly rebuild
-
AwsugCertificate: an ACM certificate inus-east-1, only when a custom domain is used
Everything runs in the Mumbai region (
ap-south-1 ), since our members are in India. Anything that holds data is set to RETAIN , so deleting a stack never deletes the content or the photos. And the account itself should belong to the group, not to me.Whenever I was unsure about a choice, I asked one question: can a volunteer do this alone, safely, and cheaply? If the answer was no, I changed the design.
The architecture
The system has three parts, and they share one thing: the content format. Every event, speaker and sponsor is a small JSON file. Each part writes those files, reads them, or turns them into web pages.
The public site
The public website is a static Astro site in a private S3 bucket. The only way to reach it is through CloudFront, so no bucket is public and no code runs when someone visits. CloudFront does more than serve files:
- Origin Access Control lets CloudFront read the private bucket.
- A small CloudFront Function maps
/events/x/to the rightindex.htmland redirects the old site's URLs, so links shared on LinkedIn and Meetup still work.
- Security headers and a strict Content-Security-Policy allow scripts and styles only from the site itself.
- Photos come from a separate media bucket under
/media/*.

The admin app
The admin panel is a React single-page app on its own CloudFront distribution. Here is what happens behind one click:
- Sign in. Cognito's hosted page handles the password and the authenticator-app code. The app gets a token using the authorization-code flow with PKCE.
- Call the API. API Gateway checks the token's signature, issuer and expiry before any code runs.
- Run one small function. Six Lambdas do all the work: list, get, save, delete, sign a photo upload, and publish.
- Write JSON. Save and delete change files in the versioned content bucket. Photos go straight from the browser to S3 with a presigned URL, and a resize Lambda turns them into web-sized WebP files with location data removed.

The publish pipeline
This part makes the design safe. The admin never touches the live site directly. The site changes only when an AWS CodeBuild project runs, and it uploads only if every check passes. A build starts in one of three ways: an organizer presses Publish, an Amazon EventBridge Scheduler job fires one minute after an event ends, or the nightly rebuild runs at 00:17 IST.
Why each service
Need | Service |
|---|---|
Fast public site, nothing to patch | S3 + CloudFront |
Sign-in for organizers only | Cognito |
A backend without a server | API Gateway + Lambda |
Event and speaker details, with undo | S3 (versioned) |
Turning details into the website | CodeBuild |
Moving events to Past on time | EventBridge Scheduler |
Event photos | Lambda |
Handing over to the next team | CDK |
I didn't use a database at all. Each item is a file in S3, and S3 versioning gave us an undo button for free.
How an organizer publishes an event
- Sign in with a password and an authenticator-app code.
- Fill in the event. One page with a steps list on the left: basics, when and where, cover photo, registration, speakers and agenda, partners, and description. A missing speaker can be added in a pop-up. Pasting a Meetup, Luma or Konfhub link fills in the registration details.
- Press Save. The details are checked and saved. The live site doesn't change yet.
- Press Publish. The panel lists exactly what will go live and asks first. A few minutes later, the event is on the website.


Two small details make this safer. All dates are entered and shown in Indian time and stored with the
+05:30 offset, whatever the organizer's computer clock says. And every event has a "Show on the website" switch next to Save: turn it off and the event is a draft, saved but kept off the public site.Publish doesn't edit the site. It asks CodeBuild to rebuild it. The Publish Lambda starts the build (only one at a time), CodeBuild pulls the latest JSON, builds the site and validates every item. If anything is wrong, such as an event that lists a speaker who doesn't exist, the build stops and the live site stays as it was. If everything passes, it uploads the new pages and clears the CloudFront cache.
Events move to Past on their own
A static website only knows what time it is when it's built. So an event page that says "Upcoming" keeps saying so after the event ends, until something rebuilds the site. In the old setup, that "something" was a developer remembering. I solved it with three layers, so one failure doesn't leave a finished event showing a Register button.
Layer 1: a one-time job for every event. Whenever an organizer saves an event, the save function creates an EventBridge Scheduler job for one minute after the event ends, in Indian time. It starts the same CodeBuild project that Publish uses, then deletes itself. There's no Lambda in the middle, because Scheduler can start a CodeBuild project directly:
const input = { Name: scheduleName(slug), // awsug-end-<event-slug> GroupName: this.cfg.groupName, ScheduleExpression: atExpression(wanted.fireAt), ScheduleExpressionTimezone: 'Asia/Kolkata', FlexibleTimeWindow: { Mode: 'OFF' }, ActionAfterCompletion: 'DELETE', // one-time job: gone once it has run Target: { Arn: 'arn:aws:scheduler:::aws-sdk:codebuild:startBuild', RoleArn: this.cfg.roleArn, Input: JSON.stringify({ ProjectName: this.cfg.buildProject }), RetryPolicy: { MaximumRetryAttempts: 5, MaximumEventAgeInSeconds: 3600 }, },};// Create it; on ConflictException (it already exists), update it instead.Because it's "create, or update on conflict", the function is safe to run on every save, and rescheduling an event just moves the job. Drafts, events already over and deleted events get their job removed. The Save Lambda can only touch schedules with the
awsug-end- prefix.Layer 2: the nightly rebuild at 00:17 IST, as a safety net for anything the per-event jobs missed.
Layer 3: the page itself. A small script in every event page checks the time in the visitor's browser, using the event's own end time. If a build is late, it marks an ended event as Past and swaps its Register button for a note. The HTML underneath stays unchanged for search engines.

Deploy it for your own group, step by step
This section takes you from an empty AWS account to a working site and an admin panel you can log in to. The repo is github.com/Sumaniac28/aws_ug_delhi_serverless , and the runbook is in
infra/README.md .What you need first

- An AWS account owned by the group, with a shared mailbox as the root email and MFA on the root user.
- A budget alarm that emails every organizer (our runbook suggests something like ₹500 a month).
- Node.js 22.12+ and the AWS CLI with credentials for that account.
- A GitHub account. The publish build pulls your code from your own copy of the repo.
- A domain (optional). You can start on the default
*.cloudfront.netaddress. A domain must be a Route 53 hosted zone in the same account.
Step 1: Fork the repo and make it yours
Fork the repo, clone your fork, and change the few places that still say "Delhi NCR":
File | What to change |
|---|---|
infra/cdk.json | Set githubRepo to your owner/repo . Delete the adminOrigins line; it holds our admin address. |
src/data/site.json | Your group's name, tagline, contact email and social links |
src/content/pages/*.md | About, Code of Conduct and Privacy. The admin can't edit these. |
infra/redirects.json | These are our old site's routes. Replace them, or set redirects to [] . |
Our events, speakers and sponsors are also in
src/content/ . You can delete those .json files and keep pages/ . After you deploy, the publish build replaces them with whatever is in your content bucket, which starts empty. The site then shows a proper empty state, not a broken page. Commit and push, because CodeBuild reads your GitHub repo.Step 2: Build the three things CDK needs
# 1. The public site (also writes csp-hashes.json for the CloudFront security policy)npm install && npm run build
# 2. The admin app(cd admin && npm install && npm run build)
# 3. The photo-resize Lambda (installs the Linux/arm64 sharp build, no Docker needed)cd infra && npm install && npm run build:lambdaStep 3: Bootstrap and deploy
npx cdk bootstrap aws://<ACCOUNT_ID>/ap-south-1# only with a custom domain (CloudFront certificates must live in us-east-1):npx cdk bootstrap aws://<ACCOUNT_ID>/us-east-1
npx cdk deploy --allWhen it finishes, keep the outputs:
SiteUrl , AdminUrl , UserPoolId , ContentBucketName and MediaBucketName .
Without a custom domain, deploy a second time. Cognito must be told the admin's address, which doesn't exist until the first deploy has created it:
npx cdk deploy --all -c adminOrigins=https://<your-admin-url>With a custom domain, pass it on the first deploy and skip the second:
npx cdk deploy --all \ -c domainName=example.org -c hostedZoneId=Z0123456789ABC -c hostedZoneName=example.org \ -c wwwRedirect=true -c adminDomainName=admin.example.org -c cognitoDomainPrefix=your-group-namecognitoDomainPrefix becomes part of the sign-in page address and must be unique across all of AWS.Step 4: Let CodeBuild read your repo
For a public repo there's nothing to set up, with one exception. If your account already has a saved GitHub credential for CodeBuild from another project, CodeBuild tries to use it for every GitHub project, and your build stops at
DOWNLOAD_SOURCE with "Access denied to connection". Check with aws codebuild list-source-credentials , and if no other project needs it, remove it with aws codebuild delete-source-credentials --arn <arn> . For a private repo, authorize CodeBuild once with aws codebuild import-source-credentials . No token is stored in the repo or in CDK.Step 5: Invite your first organizer
POOL=<UserPoolId from the outputs>
aws cognito-idp admin-create-user --user-pool-id "$POOL" --username asha \ --user-attributes Name=email,Value=asha@example.org Name=email_verified,Value=true \ --desired-delivery-mediums EMAILaws cognito-idp admin-add-user-to-group --user-pool-id "$POOL" --username asha --group-name organizers
# when a volunteer steps awayaws cognito-idp admin-disable-user --user-pool-id "$POOL" --username ashaaws cognito-idp admin-user-global-sign-out --user-pool-id "$POOL" --username ashaThey get an email with a temporary password (valid for 7 days). On first sign-in they choose a new password and set up an authenticator app. The username appears in the "edited by" history, so use something recognisable. It can't look like an email address, though they still sign in with their email.

Step 6: Publish for the first time
Open your
AdminUrl , sign in, add an event and press Publish. Watch the build go through its phases in the CodeBuild console. When it succeeds, open your SiteUrl and the event is live.
The runbook has a first-deploy checklist that I'd run once. The key checks: Publish starts and succeeds; for an event ending in about five minutes,
aws scheduler get-schedule --group-name awsug-events --name awsug-end-<event-id> shows Asia/Kolkata and a time one minute after the end; the event moves to Past by itself; and Publish with nothing new saved answers 409 nothing_to_publish .Things I wish someone had told me
- The
*.cloudfront.netaddress is for trying things out, not for launch. AWS fixes an old TLS policy on it. TLS 1.2 or newer is only enforced with your own domain and certificate.
- Don't turn on build caching in CodeBuild. Astro's content cache doesn't forget deleted files, so it could bring back an event you deleted.
- To replace a photo, upload it as a new photo. Processed images are cached for a year.
- iPhone HEIC photos aren't supported yet. Convert them to JPEG first.
- Stacks keep their data. Buckets and the user pool are set to
RETAIN, so they keep existing (and costing a little) until you remove them yourself.
Before and after deploying,
npm test , npx cdk synth --quiet && npm run smoke and npm run serve:dist (to catch security-policy problems in the browser console) are worth running from infra/ .That's the whole path: fork, build three things, bootstrap, deploy, invite, publish. If you get stuck, open an issue on the repo.
What I learned
Building this taught me less about AWS services and more about designing for people who aren't developers. These are the lessons I'd take to the next project.
1. Write the rules once and share them. The same Zod schema runs in the admin forms, the save API and the site build. So there is no "the form said yes but the build said no" moment, and a new rule, like blocking Zoom links, goes in one place and applies everywhere.
2. Enforce important rules on the server, not only in the screen. The Publish button is disabled when there's nothing new to publish, but the API also refuses with
409 nothing_to_publish . Buttons are a courtesy; the server is the rule. The same goes for photo uploads: the 25 MB limit and the 5-minute expiry are built into the upload link itself.3. Separate "save" from "go live". This one idea does most of the work. A volunteer can save half-finished work, make a mistake, or edit at the same time as someone else, and the public site stays untouched until a build passes every check.
4. A static site doesn't know what time it is. "Upcoming" and "Past" are decided when the site is built. That's why events needed a scheduled rebuild, a nightly safety net and a small script in the page. If your static site shows anything date-based, plan for this early. Storing every time with an explicit
+05:30 offset also removes a whole class of "which time zone was that?" confusion.5. S3 can be a small database if you let it. Conditional writes, versioning and delete markers gave me conflict detection and undo without running a database. That fits a few hundred small documents edited by a handful of people. I wouldn't stretch it much further than that.
6. Treat photos as a privacy problem, not just a size problem. Phone photos can carry location data. The resize Lambda strips it, and raw uploads are deleted after a day. Because it happens by default, no volunteer has to remember to do it.
7. Error messages are part of the product. "Someone else changed this item since you opened it. Reload it and re-apply your edit" is something a volunteer can act on. A bare
412 is not. Every refusal in the API returns a clear code and a plain-English message.8. Write it down for the next team. Volunteer groups change members, so the infrastructure is code and the repo has a runbook. The runbook already holds the gotchas from this post: the default
*.cloudfront.net TLS policy, a saved GitHub credential that can break CodeBuild, build caching that can bring back deleted events, and iPhone HEIC photos. Documentation is what lasts when people move on.What isn't done yet
This setup works today, but a few AWS pieces are still on my list:
- A custom domain. The live site still runs on the default CloudFront address. The stacks already support Amazon Route 53 and an AWS Certificate Manager certificate, but the domain isn't final yet. Moving to it also enforces TLS 1.2 or newer.
- Automated deploys. Right now I run
cdk deployby hand. The next step is a GitHub Actions workflow that signs in to AWS through an IAM OIDC role, so no long-lived keys are stored anywhere.
- Failure alerts for photo uploads. If the resize Lambda fails, the only trace is in Amazon CloudWatch Logs. I want to add a dead-letter queue (Amazon SQS) and an alarm, so a failed photo never goes unnoticed.
- iPhone HEIC photos. The resize Lambda can't read HEIC files yet, so they have to be converted to JPEG first.
- Traffic insight. CloudFront access logs are off to save cost. If the group wants visitor numbers, turning them on and querying them with Amazon Athena is the most likely route.
- Inviting organizers from the admin. Today, inviting or removing someone is an Amazon Cognito CLI command. A small admin screen on top of the same API would remove that last command-line step.
Wrapping up
A volunteer-run group shouldn't depend on one person's laptop to keep its website alive. With a few AWS services (S3, CloudFront, Cognito, API Gateway, Lambda, CodeBuild and EventBridge Scheduler) and one CDK app, our organizers can now add an event, upload photos and press Publish on their own. The live site is only ever changed by a build that has passed every check.
What I'm happiest about isn't any single service. It's that the design started from five promises to the people who would use it, and every AWS choice had to keep them.
If you help run an AWS user group, a student cloud club or any meetup, the code is yours to try: Sumaniac28/aws_ug_delhi_serverless . You can see the result at the AWS User Group Delhi NCR website . If you'd like help setting up something similar for your group, find me on LinkedIn or open an issue on the repo.
Want to attend an event or speak at one? Join AWS UG Delhi NCR on Meetup so you don't miss the next one.
Thank you to the AWS Community Builders program for the push to build something real, and to the organizers and volunteers of AWS UG Delhi NCR, who are the reason it exists.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article