Skip to content

MattTriano/cdn_speedtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDN Speedtest

This project experiments with setting up infrastructure (via terraform/OpenTofu) to serve a speed test via a CDN and collect the speed measurement data.

This repo's speedtest is currently served here.

Prerequisites

To follow these instructions, you will need to have:

  • either terraform or OpenTofu (an open-license fork of terraform) installed,
  • the AWS CLI installed and configured with credentials, and
  • make (you can get by without this, but you'll have to adapt the Makefile recipes to your context)

Secrets

Create a file in /infra/ named secrets.tfvars and fill in the following variables for your situation.

aws_region           = "us-east-2"
domain_name          = "SampleWebsiteDomainName"
tld                  = "com"
website_bucket_name  = "bucket-for-your-website-files"
data_bucket_name     = "bucket-for-your-speedtest-data"

Note: you'll have to own the domain_name in the indicated top level domain (tld), and this project assumes that domain is registered through AWS's domain registry Route 53.

Usage

Run make package to prepare the zipped up lambda_func zip archive. Run make plan to plan out tofu resources. Run make apply to apply the plan and create the resources. Run make deploy-static to push the site files up into the website_bucket.

About

Serve a speedtest from the edges of AWS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published