A few months back, I came across the Cloud Resume Challenge proposed by Forrest Brazeal. It seemed like a good way to practice some hands-on building in the cloud on a real project, so I decided to join the community and work on the challenge.
The details of the Cloud Resume Challenge were as follows:
Certification: Your resume has to have the AWS Cloud Practitioner certification on it. This was no sweat, since I already had a few AWS certifications, Cloud Practitioner being one. ✅
HTML: Your resume has to be written in HTML. ✅
CSS: Your resume has to be styled with CSS. ✅
Static S3 Website: Your resume should be deployed online as an AWS S3 static website. I also chose to use a second S3 bucket (www) to redirect back to my naked domain. ✅
HTTPS: The S3 website URL should use HTTPS for security. I was impressed with how smoothly AWS Certificate Manager and CloudFront made this process work. ✅
DNS: Point a custom DNS domain name to the CloudFront distribution. This was the first time I got to actually use AWS Route 53 for managing a real domain. Again, smooth sailing. ✅
JavaScript: Your resume webpage should include a visitor counter that displays how many people have accessed the site, using JavaScript. Not being a person who uses JavaScript a ton, this forced me down a rabbit hole of learning way more JavaScript than I ever thought I'd need (e.g., requests, promises, synchronous, asynchronous), and it was my first spot where I struggled on this challenge. ✅
Database: The visitor counter will need to retrieve and update its count in a database somewhere. As suggested in the instructions, I used the NoSQL key-value database DynamoDB for this. ✅
API: Do not communicate directly with DynamoDB from your JavaScript code. Instead, create an API that accepts requests and communicates with the database. I had one small stumbling block related to the Decimal data type in DynamoDB and transforming it back to a JSON response, but as everyone knows, StackOverflow is most definitely your friend. ✅
Python: You will need to write a bit of code in the Lambda function. Once my Python code was working, it was still rather sloppy and monolithic, so I modularized the code so that it would be easier to test in the next step. ✅
Tests: You also need to include some tests for your Python code. This introduced me to the moto library, which allows you to create mock AWS services for testing purposes. I also used the standard unittest module in Python. ✅
Infrastructure as Code: You should not be configuring the DynamoDB table, API Gateway, or Lambda function manually by clicking around in the AWS console. Instead, you should use an AWS Serverless Application Module (SAM) template to deploy these resources using the AWS SAM CLI. After getting over the initial learning curve of SAM, I can definitely see the value that it provides for managing IaC and actually became very comfortable working with it. ✅
Source Control: Create a private GitHub repository for your back-end code. ✅
CI/CD Back-End: Set up GitHub Actions so that when you push an update to your SAM template or Python code, your Python tests get run automatically. If the tests pass, then build and deploy to AWS. I found GitHub Secrets and GitHub Actions to both be pretty intuitive to use. I still had some deployment errors, but they were rather easily fixed. ✅
CI/CD Front-End: Create a second private GitHub repository for your front-end website code, and use GitHub Actions to push any updated code automatically to the S3 bucket where your site assets are hosted.
Blog Post: Finally, after much experimentation, having a gazillion tabs open on my browser, and powering through and debugging many different errors along the way, I got to the end of the challenge. Culminating in this post! 🎉 ✅
Overall, going through the process of this challenge was amazingly valuable. All of the hours spent searching and fixing things were totally worth it, and this was a wonderful learning experience.
Top comments (5)
I liked this article.Can you be more specific .The reason I asked is I wanted to build my profile according to the points above. Thank you.
For steps 2-6, here is a good article on building a static S3 site. Once you have your basic website up and working, I'd recommend skipping to step 12 and creating a SAM template. Here is a good blog post that describes how to do that. At that point, you've provisioned a Lambda function and an API Gateway, and you just need to add some language in the SAM template to include a DynamoDB table. That rounds out steps 8-10 and 12 and you're a majority of the way there. Hope that helps!
Thank you very much.I will have a look on this.
Good job! Keep learning
Thanks, Rajan!