<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Using AWS to Host a Static Website on Cloud Renegade</title><link>https://renegade.cloud/series/using-aws-to-host-a-static-website/</link><description>Recent content in Using AWS to Host a Static Website on Cloud Renegade</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Thu, 02 Jan 2025 06:00:00 +0000</lastBuildDate><atom:link href="https://renegade.cloud/series/using-aws-to-host-a-static-website/index.xml" rel="self" type="application/rss+xml"/><item><title>Using AWS to Host a Static Website - Part 7</title><link>https://renegade.cloud/blog/aws-static-website-p7/</link><pubDate>Thu, 02 Jan 2025 06:00:00 +0000</pubDate><guid>https://renegade.cloud/blog/aws-static-website-p7/</guid><description>&lt;p&gt;In part 6 I created the CDN distribution using Amazon CloudFront which tied the SSL certificates, HTTP to HTTPS redirection and the static content on the Amazon S3 bucket together. In this post, I am creating the Amazon Route 53 alias records to point at the distribution that I created.&lt;/p&gt;&#10;&lt;h2 id="the-sequence"&gt;The Sequence&lt;a class="heading-anchor" href="#the-sequence" aria-label="Link to this section"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Create the alias DNS entry for the apex domain&lt;/li&gt;&#10;&lt;li&gt;Create the alias DNS entry for www&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="the-cloudformation-template"&gt;The CloudFormation Template&lt;a class="heading-anchor" href="#the-cloudformation-template" aria-label="Link to this section"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;This CloudFormation template is available &lt;a href="https://github.com/j4m1e/static-website-iac/tree/main/part7"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Using AWS to Host a Static Website - Part 6</title><link>https://renegade.cloud/blog/aws-static-website-p6/</link><pubDate>Wed, 01 Jan 2025 06:00:00 +0000</pubDate><guid>https://renegade.cloud/blog/aws-static-website-p6/</guid><description>&lt;p&gt;In part 5 I created the SSL certificates to use with the static website. In this post, I am going to deploy Amazon CloudFront for the CDN portion. Before I do that, I am going to upload the static HTML files that will be rendered.&lt;/p&gt;&#10;&lt;h2 id="using-the-awscli-to-upload-content"&gt;Using the AWSCLI to Upload Content&lt;a class="heading-anchor" href="#using-the-awscli-to-upload-content" aria-label="Link to this section"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The content can be whatever but for ease I have provided the HTML files I am using &lt;a href="https://github.com/j4m1e/static-website-iac/tree/main/static-files"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Using AWS to Host a Static Website - Part 5</title><link>https://renegade.cloud/blog/aws-static-website-p5/</link><pubDate>Tue, 24 Dec 2024 06:00:00 +0000</pubDate><guid>https://renegade.cloud/blog/aws-static-website-p5/</guid><description>&lt;p&gt;In part 4 I did a walk through of creating an Amazon Route 53 public hosted zone. If AWS is registrar, that step is not required as AWS create it as part of the registration. It just made sense to walk through the steps for completeness. In this post I am walking through the steps to create SSL certificates and use DNS validation. This is achieved using &lt;strong&gt;AWS Certificate Manager&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Using AWS to Host a Static Website - Part 4</title><link>https://renegade.cloud/blog/aws-static-website-p4/</link><pubDate>Mon, 23 Dec 2024 06:00:00 +0000</pubDate><guid>https://renegade.cloud/blog/aws-static-website-p4/</guid><description>&lt;p&gt;In part 3 I walked through the creation of the Amazon S3 bucket where the static website content will reside. In this post I will walk through using CloudFormation to create an Amazon Route 53 public hosted zone. This is automatically created when a domain is registered using Amazon Route 53 so this is for completeness and is not required for this series of posts.&lt;/p&gt;&#10;&lt;h2 id="the-sequence"&gt;The Sequence&lt;a class="heading-anchor" href="#the-sequence" aria-label="Link to this section"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;This is a very straight forward process and only has one step which is to create the public hosted zone. However, I am introducing the use of a parameter file to simplify the AWSCLI. This is in the JSON format and will only have one parameter. The public hosted zone I am creating is &lt;strong&gt;foobar.com&lt;/strong&gt; which is made up and is likely to exist but because I am not changing the name server details at the registrar level it will not interfere with anything. However I recommend you use a domain owned by you if you want to try this out.&lt;/p&gt;</description></item><item><title>Using AWS to Host a Static Website - Part 3</title><link>https://renegade.cloud/blog/aws-static-website-p3/</link><pubDate>Mon, 23 Dec 2024 05:00:00 +0000</pubDate><guid>https://renegade.cloud/blog/aws-static-website-p3/</guid><description>&lt;p&gt;In part 2 I discussed the sequence that is to be used to build out a static website on AWS and covered how to register a domain using Amazon Route 53. In this post, I am going to cover using CloudFormation to create an Amazon S3 bucket for the static website content.&lt;/p&gt;&#10;&lt;h2 id="before-we-start"&gt;Before We Start&lt;a class="heading-anchor" href="#before-we-start" aria-label="Link to this section"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;There is an assumption that the &lt;strong&gt;awscli&lt;/strong&gt; has been installed and credentials configured. Personally I do not like having aws credentials stored locally in the AWS credentials and config files. I prefer to use a password manager to store the &lt;strong&gt;access_key_id&lt;/strong&gt; and the &lt;strong&gt;secret_access_key&lt;/strong&gt; if single sign on (SSO) is not configured. If you would like to know how to do this then refer to &lt;a href="https://renegade.cloud/blog/aws-credentials-password-manager/"&gt;How to use a Password Manager to Store AWS Credentials&lt;/a&gt; post.&lt;/p&gt;</description></item><item><title>Using AWS to Host a Static Website - Part 2</title><link>https://renegade.cloud/blog/aws-static-website-p2/</link><pubDate>Sun, 15 Dec 2024 05:00:00 +0000</pubDate><guid>https://renegade.cloud/blog/aws-static-website-p2/</guid><description>&lt;p&gt;In Part 1 I talked about the AWS services used to host a static website and the use of Infrastructure-as-Code (&amp;ldquo;IaC&amp;rdquo;) to deploy and, ultimately maintain the infrastructure that underpins it. In this post, I am going to talk about the sequence that the AWS services need to be created in.&lt;/p&gt;&#10;&lt;h2 id="the-sequence"&gt;The Sequence&lt;a class="heading-anchor" href="#the-sequence" aria-label="Link to this section"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Understanding the sequence that AWS resources have to be created in ensures that there is little to no rework when creating the IaC aka &lt;em&gt;static website deployment automation&lt;/em&gt;. When creating a static website that is hosted on AWS following this sequence ensures that all services are created and that their dependency on each other is satisfied. This all starts with a registered domain name. AWS does not need to be used as the registrar but for this example I have as it simplifies this a little.&lt;/p&gt;</description></item><item><title>Using AWS to Host a Static Website - Part 1</title><link>https://renegade.cloud/blog/aws-static-website-p1/</link><pubDate>Fri, 13 Dec 2024 05:00:00 +0000</pubDate><guid>https://renegade.cloud/blog/aws-static-website-p1/</guid><description>&lt;p&gt;For years I have been uses various platforms to host a static website and one of the easiest ways, for me, has been to use AWS services to do so. At the core of it, there is Amazon S3 which is cheap and easy to configure as a static website. You can add several other AWS services to this to provide a scalable and robust solution for hosting a static website.&lt;/p&gt;</description></item></channel></rss>