How barrosamorim/cloud-resume-challenge works
This repository implements a cloud-hosted interactive résumé with a visitor counter. A visitor loads the static site, whose JavaScript sends a request to the API; the API invokes a Lambda function that atomically increments the DynamoDB count and returns it for display. Terraform defines the hosting, delivery, API, compute, database, and certificate resources. The workflow follows the sampled frontend and Lambda code; service wiring and some frontend details are based on the README, since those Terraform and HTML/CSS files were not sampled.
Main entry points: lambda_function.py Counter handler · main.js Counter client · cloudfront.tf CDN configuration · s3.tf Bucket configuration
Components 16
Résumé interface
- Résumé page
frontend/index.html - Page styling
frontend/style.css - Counter client
frontend/main.js
Web delivery
- CloudFront CDN
- Static site bucket
- TLS certificate
Visitor counter
- API Gateway
- Counter handler
backend/lambda_function.py - Visit counter table
Terraform infrastructure
- CDN configuration
terraform/cloudfront.tf - Bucket configuration
terraform/s3.tf - Certificate configuration
terraform/acm.tf - API configuration
terraform/api_gateway.tf - Lambda configuration
terraform/lambda.tf - Table configuration
terraform/dynamodb.tf
Other components
- Browser visitor
Connections 14
- Browser visitor → CloudFront CDN: loads site
README.md - CloudFront CDN → Static site bucket: fetches assets
README.md - CloudFront CDN → TLS certificate: uses certificate
README.md - Browser visitor → Counter client: runs client
README.md - Counter client → API Gateway: POSTs count request
frontend/main.js - API Gateway → Counter handler: invokes
README.md - Counter handler → Visit counter table: increments count
backend/lambda_function.py - Counter handler → Counter client: returns count
backend/lambda_function.py - CDN configuration → CloudFront CDN: configures
README.md - Bucket configuration → Static site bucket: configures
README.md - Certificate configuration → TLS certificate: configures
README.md - API configuration → API Gateway: configures
README.md - Lambda configuration → Counter handler: configures
README.md - Table configuration → Visit counter table: configures
README.md