Skip to main content
ShirePath Solutions

Drawing 02.8, marketing site and contact form

Outsourcing Services

A site for an HR outsourcing consultancy in Huntington Beach, California, which connects businesses with PEO partners for payroll, HR, benefits, and workers' comp. Four pages in the owner's own words, and a contact form that reaches his inbox.

AWSCNAMEHTTPSpagessigned POSTSendEmailsend failures10 KB a message1234567Cloudflare DNSBrowserCloudFrontS3 site bucketContact LambdaAmazon SESAlarmsAWSCNAMEHTTPSpagessigned POSTSendEmailsend failures1234567CloudflareDNSBrowserCloudFrontS3 sitebucketContactLambdaAmazon SESAlarms
Fig. 1. Static pages from a private bucket behind CloudFront, and one small Lambda that sends the contact form through SES.
Parts list for Outsourcing Services
No.PartWhat it does here
1Cloudflare DNSThe client's DNS, outside AWS: the apex and www point at CloudFront, and the mail records stay as they were.
2BrowserVisitors read the services and industries and send a message from the contact page.
3CloudFrontOne host for both: pages through a viewer function that keeps the addresses clean, and the form to the Lambda, never cached. It sets the CSP and the security headers.
4S3 site bucketPrivate: the Astro build, readable only by this distribution.
5Contact LambdaChecks the fields and the bot traps, then sends; its function URL takes IAM-signed requests from CloudFront only.
6Amazon SESSends each message from the site's own address, the only address the Lambda may send as.
7AlarmsA health check from three regions, and alarms on the site, the certificate, and a failed send.

Why it exists

Outsourcing Services is an HR outsourcing consultancy in Huntington Beach, California. Its old site had been down since July 2026 on a host whose server no longer answered, and the same domain carries the office's Microsoft 365 mail. The job was to bring the site back with the owner's published copy, give it a contact form that reaches him, and point the domain at the new site without touching the mail.

How it is built

The pages are plain HTML, built ahead of time with Astro and kept in a private S3 bucket that only CloudFront can read, so there is no server to keep up for them. A small function at the edge keeps the addresses clean: an old link ending in .html or a slash gets one redirect to the plain address. The site loads no outside scripts, styles, or fonts, and its Content-Security-Policy allows only its own files.

The contact form posts to the same address. CloudFront signs the request and passes it to a Lambda whose address accepts nothing else, so the function cannot be reached around the site. It checks each field, turns bots away with a hidden field and a check on how fast the form was filled, and sends the message through Amazon SES from the site's own address to the owner's inbox, with the visitor's address to reply to. Nothing is stored.

The domain's DNS stays at Cloudflare with the client's IT provider, beside the office mail. The site needed a handful of new records there, and no mail record was touched. A health check loads the home page from three regions, and alarms tell us when the site is down, the certificate stops renewing, or a message fails to send.

What it does

  • Four pages in the owner's published words, with every change to them recorded
  • A contact form sent through Amazon SES, with nothing stored
  • Bots turned away by a hidden field and a fill-time check
  • No outside scripts, styles, or fonts, under a strict Content-Security-Policy
  • Old addresses redirected once, at the edge, to clean ones
  • A health check from three regions, and alarms on the site, the certificate, and the form

Screenshots

Plate 1. Outsourcing Services, as it looks live.

Something like this on your list? Tell us about it.

Talk about a build like this