Skip to content

Instantly share code, notes, and snippets.

View matalo33's full-sized avatar
🙈

Matthew Taylor matalo33

🙈
View GitHub Profile
AWSTemplateFormatVersion: "2010-09-09"
Description: >
Launch a static website backed by an S3 bucket and served via https through cloudfront.
Assumes you have the following available already
* An address in mind (e.g. blog.example.com)
* An existing Route53 Hosted Zone for the domain
* A validated AWS ACM certificate arn for the desired web address which must be in eu-west-1
Parameters:
HostedZoneID:
Description: >
### Keybase proof
I hereby claim:
* I am matalo33 on github.
* I am matalo (https://keybase.io/matalo) on keybase.
* I have a public key ASCqqGeFt31RyPM0lxS9ut_YxwES_g3gFJIyREIwsHjaaQo
To claim this, I am signing this object:
AWSTemplateFormatVersion: "2010-09-09"
Description: >
Create an S3 bucket and configure it for s3-website hosting
Create a record in a pre-existing Route53 HostedZone and point at the newly created bucket
Parameters:
HostedZoneID:
Description: The Hosted Zone ID in which to create the website DNS record
Type: AWS::Route53::HostedZone::Id
WebsiteAddress:
Description: >