Menu

How I put my resume on the cloud
📰

How I put my resume on the cloud

DEV Community: terraform·Richard Babatola·about 15 hours ago
#ZwblSLsL
#devtoterraform#devto#dev#function#file
Reading 0:00
15s threshold

I built my resume as a static site and put a visitor counter behind it. The page is one HTML file. The number on the page is a small serverless API.

Amazon S3 stores the file in a private bucket. CloudFront is the public address, and it is the only thing allowed to read the bucket. A visitor who opens the S3 URL directly is denied. HTTPS is the CloudFront certificate. I kept that hostname instead of attaching a domain I already owned.

The browser does not talk to DynamoDB. The page calls an HTTP API, API Gateway invokes a Python Lambda function, and the function adds 1 to one row in a DynamoDB table. The table key is a string, Id_string , and the row id is resume . The JavaScript looks up an element with id="visitor-count" and writes the number there. A script with no matching element calls the API and shows nothing.

I created the table, the function, and the API in the console first. Terraform came second.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.