A static website that is hosted on an Amazon S3 bucket uses client-side technologies such as HTML, CSS, and JavaScript in order to render static content to users. To access the static website, users can navigate to a custom domain that they've registered and configured using Amazon Route 53 or Amazon CloudFront, or by simply visiting the S3 bucket URL.
As the website continues to develop, it's important to provide a seamless transition for users as new designs and features come available. URL Redirection (or URL Forwarding) is a technique that allows you to redirect requests to a different URL. Your website and its users can benefit from redirects in the following instances:
With Amazon S3 website redirects, you can ensure the proper content is reaching your users while minimizing interruptions.
In this lab, you will configure two types of website redirects. In the first lab step, you will redirect traffic intended for one S3 bucket, to another S3 bucket that contains updated content. The second lab step will have you configure conditional redirects, a feature that allows you to define routing rules based on certain object keys or errors that users may encounter on your website.
Upon completion of this lab, you will be able to:
Familiarity with the following will be beneficial but is not required:
If you need a refresher, refer to the following labs:
Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications.
Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content.