Adding new subdomains
Getting started
This section will go over how to add new subdomains to the mstacm.org domain using AWS. Subdomains follow the format of *.mstacm.org
Step 1: CloudFront
note: CloudFront is being used to enforce HTTPS across all mstacm domains, if this is not needed then you can skip to step 2. You will most likely want this though :)
Step 1.1
Navigate to the AWS service "CloudFront"
Step 1.2
Click "Create distribution" and follow these steps:
note: there are a lot of fields here, you will only need to mess with the ones mentioned here
Origin
"Origin domain" will be the domain you want your new subdomain to point to
Viewer
For "Viewer protocol policy" select "Redirect HTTP to HTTPS"
Cache key and origin requests
Under "Cache policy" select "CachingOptimized"
Settings
"Alternate domain name (CNAME)" field will be "{your subdomain}.mstacm.org", for example, if the subdomain being added is "security" then the value you would enter is "security.mstacm.org"
Under "Custom SSL certificate" choose our ACM Certificate "*.mstacm.org (8ccc6e72-a8db-429d-8a37-c54bdbbfe36d)"
Step 1.3
Done, create the distribution and head to step 2
Step 2: Route53
Step 2.1
Navigate to the AWS service "Route53" -> "Hosted zones" -> "mstacm.org"
{insert image when I can}
Step 2.2
Click "Create record" and follow these steps:
Enter your new subdomain under "Record name"
Keep the record type as "A"
Enable the "Alias" right below the record name field
Choose "CloudFront distribution" for the "Route traffic to" field
Select the CloudFront distribution you made earlier
{insert image here}
Step 2.3
Done, allow 10 minutes or so for things to start working.
Last updated