Close|CloudStack Canvas · How-To Guide
How-To Fix

Set a Custom Origin Domain for CloudFront

CloudFront needs at least one origin — the server it fetches content from. If you are not using a connected S3 bucket or ALB, set "originDomain" to your server's domain name. This is typically an API hostname, an on-premise server, or another cloud endpoint.

Paste into this field

CloudFront → originDomain

Output looks like

api.example.com or my-alb-1234.us-east-1.elb.amazonaws.com

1Find your origin domain

The origin domain is the DNS hostname CloudFront will send requests to. Common sources:

• API Gateway: navigate to API Gateway → your API → Stages → copy the "Invoke URL" hostname (without https:// and the stage path).

• ALB: navigate to EC2 → Load Balancers → click your ALB → copy the "DNS name".

• Custom server: use your server's public DNS hostname.

6Paste into CloudStack Canvas

Select your CloudFront node → open the property panel → paste the hostname (no https://) into "Custom Origin Domain".

8Tip: connect on the canvas instead

If the origin is an S3 bucket, ALB, or REST API you already have on the canvas, draw an edge from that node to your CloudFront node. The generator will use the connected resource's endpoint automatically and you won't need to set originDomain at all.

Once you have the value, go back to CloudStack Canvas and paste it into the highlighted field.

CloudStack Canvas · Validation Guide

Set a Custom Origin Domain for CloudFront — CloudStack Canvas