Cloud Resume on AWS

Background

I’m pursuing the Cloud Resume Challenge on AWS

Purpose

I love technology and currently work as a Senior PM. I want to advance my understanding of AWS by building projects instead of just learning from tutorials. Using …


This content originally appeared on DEV Community and was authored by Andreas Niss*

Background

I'm pursuing the Cloud Resume Challenge on AWS

Purpose

I love technology and currently work as a Senior PM. I want to advance my understanding of AWS by building projects instead of just learning from tutorials. Using the Cloud Resume challenge, I want to learn more about S3, CloudFront, Route 53 and databases on AWS with the goal to have hands-on experience and be better prepared for a more tech focused role and passing the AWS SA certificate.

Experience for each building block

Part 1: Static website hosting

A: Create website with CSS

Use GenAI to help me with template generation and build very basic website and saved as index.html, styles.css and for error handling a page called 404.html

B: Upload the files on S3 (simple website hosting)

  1. Create a S3 bucket (arn:aws:s3:::www.anissen.net) and upload all files
  2. Adjust properties to allow "static website hosting" with hosting type: "bucket hosting"
  3. Adjust permissions: turn "block public access" to OFF
  4. Adjust permission: add bucket policy to allow action "s3.getObject"

Helpful Tutorial: Configuring a static website on Amazon S3

Result: AWS region specific website endpoint, link to access website found in Bucket under properties at the end of the page with start of the URL being the bucket name
http://www.anissen.net.s3-website-us-east-1.amazonaws.com

C: Created a different bucket without direct access to internet and use Route 53 for custom domain and access the website via CloudFront

New private S3 bucket

  1. I uploaded all files to another bucket (arn:aws:s3:::resume.challenge.anissen2)
  2. Adjust properties to allow "static website hosting" with hosting type: "bucket hosting"
  3. Adjust permissions: leave "block public access" to ON
  4. Adjust permissions: add bucket policy which allows access to service CloudFront

CloudFront

Useful tutorials:
Enable HTTPS on CloudFront
Host static website on CloudFront
Webiste Hosting with custom domain walkthrough

Result: Access to private S3 bucket HTML page via https://d3q2tesdwm4f6.cloudfront.net/

Route 53 and AWS Certificate Manager

  1. Purchased and registered domain anissen.net
  2. I set everything up already within CloudFront, but could not access via domain (I assume needs 1/2 day that domain is registered with all relevant DNS and spend a lot of time troubleshooting, although it was already correctly set up)
  3. Request a (SSL) certificate for the domain via AWS Certificate Manager and create a record in Route 53 for the domain with Type CNAME
  4. In Route 53 under the hosted zone, add one more record to with type A to route traffic to the CloudFront generated before
  5. Add alternate domain name in CloudFront under General > Settings to "anissen.net" Result: When opening anissen.net in browser, the user is redirected via Route 53 and the SSL certificate to a HTTPS URL accessing the static website hosted in S3 through CloudFront.

Image description


This content originally appeared on DEV Community and was authored by Andreas Niss*


Print Share Comment Cite Upload Translate Updates
APA

Andreas Niss* | Sciencx (2024-08-18T16:29:08+00:00) Cloud Resume on AWS. Retrieved from https://www.scien.cx/2024/08/18/cloud-resume-on-aws/

MLA
" » Cloud Resume on AWS." Andreas Niss* | Sciencx - Sunday August 18, 2024, https://www.scien.cx/2024/08/18/cloud-resume-on-aws/
HARVARD
Andreas Niss* | Sciencx Sunday August 18, 2024 » Cloud Resume on AWS., viewed ,<https://www.scien.cx/2024/08/18/cloud-resume-on-aws/>
VANCOUVER
Andreas Niss* | Sciencx - » Cloud Resume on AWS. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/18/cloud-resume-on-aws/
CHICAGO
" » Cloud Resume on AWS." Andreas Niss* | Sciencx - Accessed . https://www.scien.cx/2024/08/18/cloud-resume-on-aws/
IEEE
" » Cloud Resume on AWS." Andreas Niss* | Sciencx [Online]. Available: https://www.scien.cx/2024/08/18/cloud-resume-on-aws/. [Accessed: ]
rf:citation
» Cloud Resume on AWS | Andreas Niss* | Sciencx | https://www.scien.cx/2024/08/18/cloud-resume-on-aws/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.