Cloud Resume Challenge [Part 2]
Hello everyone! I know I’m late, but I had a good reason, the cloud resume challenge is challenging. I was not prepared for the second part of this challenge.
5- DNS & CDN
Let’s start with CloudFront, CloudFront is a Content Delivery Network (CDN) service that in this case will allow me to use a domain name instead of the S3 buckets Object URL.
In CloudFront, I chose my origin domain to be my S3 bucket (TyrrellDMB).
I chose not to enable OAI as this is a public website, I also left the path pattern as default as changing it was not needed. I was interested in using Origin Shield but was put off by the price, I’m trying to be frugal these days. I’m balling on a budget.
Viewer protocol policy was configured to redirect HTTP traffic to HTTPS I also set the allowed methods to Get, Head & Options. If this sounds familiar it’s because it is coded into the API and configured for CORS.
Afterward, there were a few more options that followed but I left them at their default configurations because I had to create the domain name.
So, moving to Route 53, I bought a domain (TyrrellDMB.com) it was $12, and this website is way cheaper than GoDaddy/SiteGround/Bluehost/etc.
领英推荐
I created the domain and then went to Certificate Manager and requested a cert for my domain. I then added the cert to Route 53’s records.
Once those two steps were done, I came back to CloudFront and finished adjusting the distribution’s configurations. I added my domain name, used connected my cert and the distribution was done.
6- Infrastructure as Code & Backend CI/CD
Moving over to our next step it was time for me to investigate Backend CI/CD & Infrastructure as Code (IaC).
Utilizing CodeBuild documentation I was able to link my backend GitHub repository to AWS. This allows me to update my infrastructure code via VSCode. I used the latest version of Amazon’s Linux container along with the 5.0 runtime.
I also created a buildspec.yml file to be run as default & after configuring Lambda & CodeBuild access the build ran successfully. I also created a template file that could recreate the objects for my website just in case I need to create another one or something gets corrupted. I followed this video for the most part and created my template file from that.
Next time we talk about this challenge it will be to celebrate obtaining the AWS Certified Cloud Practitioner. Check out the full version here!