CloudFront CDN
Add a CloudFront CDN resource to your Altostra project
The CloudFront CDN resource creates a CloudFront distribution.
To add an CloudFront CDN resource in the designer, go to the "Networking & Content Delivery" section
and select the "CloudFront CDN" resource, or search "cdn" in the search box:

CloudFront CDN properties

Name:
type: string
| required
- Altostra will use Name property for generating a logical ID:
- Only strict alpha-numeric characters will be used (by the restrictions of CFN)
- If non alpha-numeric characters were used in the name, the logical ID will be generated by the resource type
- Up to 64 characters
Default Route:
type: string
- Name of the default html file used for handling requests to the root URL.
Single Page App (SPA):
type: boolean
- Configures CloudFront distribution to handle Errors (i.e., a 404 Not Found response) by showing default route (i.e., a index.html) instead of CloudFront Error page
Use TLS:
type: boolean
- Configures CloudFront to serve content only via HTTPS
HTTP Redirection:
type: boolean
| conditional
- Available only if
Use TLS
is enabled - Configures CloudFront to redirect HTTP trafic to HTTPS
CloudFront CDN connections

The CloudFront CDN can connect to the following resources:
- Storage
- S3 Bucket
- Stores your web application
- S3 Bucket