CDN (Content Delivery Network)

CDN nodes create a system of proxy servers that proxy static resources from an an associated Object Store to users with low latency and high availability via geographically local data centers.

A CDN node must be connected to exactly one Object Store. The CDN node is granted read access to all objects in the Object Store, irrespective of the Object Store’s Public Permissions property. If you want all access to go through the CDN, set the Object Store’s Public Permissions property to none.

Settings

Name

A label used for the node in the canvas

Use Custom Domain?

By default, Stackery will automatically create a domain for the CDN. This domain will be hosted under stackery-stacks.io.

Custom Domain

The domain name that will be used for the CDN. AWS Certificate Manager will provision an SSL certificate for this domain. In order to provision the certificate, AWS will send an email to the domain’s registration contacts and certain well-known domain administration email addresses:

  • administrator@
  • hostmaster@
  • postmaster@
  • webmaster@
  • admin@

When deploying be sure to check these email addresses to approve the certificate. If the domain is not verified within one hour of the start of the deployment the deployment will fail and be rolled back automatically.

The CDN domain name must be globally unique - specifically across AWS CloudFront Distributions and AWS API Gateway Custom Domains.

If your stack fails to deploy, please check that you own the root domain, and that the domain isn’t being used in any region in AWS Cloud Front or AWS API Gateway Custom Domains.

After deployment a CNAME DNS record will need to be created for the domain. Select the current deployment in the Stackery dashboard, then select the CDN node in the canvas area. Find and copy the DNS Name value in the properties panel on the right. Create a CNAME record to map the custom domain to this DNS name. Check with your DNS provider for instructions on how to create the record.

Enable Root Object

By default, visitors to the root of the CDN domain will receive a 404 Not Found message because there is no file in the Object store for the root. Enabling a root object allows for proxying requests to the root of the CDN domain to a specific file, such as /index.html.

Root Object

When a root object is enabled, this value specifies the location of the root object to be proxied.

Try Stackery For Free

Gain control and visibility of your serverless operations from architecture design to application deployment and infrastructure monitoring.