Ravion-managed domains
Turn on Ravion-managed domains, add your domains, and add the DNS records Ravion shows you. Ravion issues the ACM certificates, attaches them to the load balancer or CloudFront distribution, routes the domains, and renews the certificates.How it works
Each custom domain likeapp.example.com needs two records at your DNS provider:
Ravion shows the routing record only after the certificate issues, so you never send traffic to an endpoint that can’t serve HTTPS for the domain yet.
Requirements
A domain can be on only one module across all Ravion organizations.
Set up an ECS web service
Every service gets a default address under its cluster’s domain, likeweb.acme.ravion.app. Ravion owns ravion.app, so default addresses work with no DNS setup. Custom domains are served alongside the default address unless you turn it off.
The cluster needs exactly one ALB, public or private, with HTTPS enabled, and the service needs a load balancer attachment. rvn-eks-addons 0.17.0 and later has the same Ravion-managed domains setting for its shared ALB.
Turn on managed domains on the cluster
On the ECS cluster’s Config tab, under Managed domains:- Turn on Ravion-managed domains.
- Optionally set Cluster domain. It defaults to the cluster’s module ID, so a cluster named
acmegetsacme.ravion.app. All Ravion users shareravion.app, so the name must be unique across every Ravion organization. Ravion rejects a name another organization already uses, and reserves common names likeapi,app, andwww.
*.acme.ravion.app, sets it as the default certificate on the ALB’s HTTPS listener, and points *.acme.ravion.app at the ALB. The cluster’s Certificates tab lists it, along with each service certificate attached to the listener.
The cluster’s own certificate inputs and the services’ listener rule inputs are hidden while managed domains are on. Ravion creates the listener rules for every service domain.
Add domains to the service
Services on the cluster pick up managed domains automatically. On the service’s Config tab, under Domains:- Default Ravion domain serves the service under the cluster domain. It’s on by default. Subdomain sets the name and defaults to the service’s module ID:
webbecomesweb.acme.ravion.app. Use a name no other service on the cluster uses. - Custom domains takes the domains you own, like
app.example.com. The service serves them alongside the default address. To serve only your custom domains, turn off Default Ravion domain. Turning it off requires at least one custom domain.
Serving custom domains alongside the default address requires
rvn-ecs-web 2.4.0 or later. In 2.3.0, setting any custom domain replaces the default address.ravion.yaml
Set up a static site or CloudFront distribution
Static sites and CloudFront distributions don’t get aravion.app address. Until your domains are attached, they serve on their default *.cloudfront.net domain.
On the module’s Config tab, under CloudFront settings for a static site or Distribution for CloudFront:
- Turn on Ravion-managed domains.
- Add your domains under Custom domains.
us-east-1, and once it validates, attaches the certificate and your domains to the distribution. You don’t need another apply.
ravion.yaml
Host header. Add the same domains to the service’s Domain host rules.
Add the DNS records
Open the module’s Domains tab. Each custom domain has a card with its records and two statuses: certificate (Verified) and routing (Configuration valid).1
Add the validation record
Copy the validation CNAME name and value into your DNS provider. AWS checks it and issues the
certificate, usually within a few minutes.
2
Add the routing record
Once the certificate issues, the card shows the routing CNAME. Add it to send traffic to your
service or site. If the domain currently serves another site, this is the cutover: see
Move an existing domain.
3
Confirm
Click Refresh. The card shows Verified and Configuration valid when both records
match what public DNS returns.
DNS provider notes
- Cloudflare: set both records to DNS only (gray cloud).
- Apex domains like
example.comcan’t have a CNAME. Use your provider’s ALIAS, ANAME, or CNAME flattening record with the same value. - Some providers append your zone name. For
_abc123.app.example.comin theexample.comzone, enter_abc123.app.
Change domains
Edit Custom domains and apply. Ravion issues a new certificate covering the new list and swaps it onto the load balancer or distribution without downtime. Add the validation record for any new domain; the existing domains keep serving traffic while the new certificate issues. Before you turn off managed domains on a cluster, turn them off on its services or remove the services. Ravion won’t delete the cluster’s wildcard certificate while services still use it.Move an existing domain
To move a domain that already serves traffic elsewhere:- Add the domain to the module and add the validation record. The old site keeps serving traffic.
- Lower the TTL on the domain’s current record to 60 seconds, and wait for the old TTL to expire.
-
Test the new endpoint before switching DNS, using the value of the routing CNAME as the target:
- Replace the current record with the routing CNAME. To roll back, point it back at the old target.
- Once traffic looks normal in the module’s metrics and logs, raise the TTL back to a normal value like 300 seconds.
Troubleshooting
You can also check domains from the CLI with
ravion domain list and ravion domain dns-status.
Bring your own certificate
Use this for anything managed domains don’t cover: NLB services, ECS clusters with managed domains off, and static sites or CloudFront distributions created with managed domains off. You create the certificate with an ACM Certificate module and attach it to the module that terminates TLS.1
Request the certificate
Add an
rvn-acm-certificate module with your domains. If the domain has a Route 53 public
hosted zone in the same AWS account, set route53_validation_records_creation_enabled: true
and route53_zone_id, and the module creates the validation records itself. You can’t change this setting after the
first apply.ravion.yaml
2
Validate the certificate
Otherwise, apply the module, copy the validation CNAMEs from its stack outputs into your DNS
provider, and wait for the certificate to show Issued. Keep the records for automatic
renewal.
3
Attach the certificate
Reference the certificate from the input in the table above, with
moduleGivenIdRef: app-cert
in the config file or the module picker in the dashboard. AWS rejects attaching a certificate
that hasn’t issued yet. For ECS services behind the ALB, also add the domain to the service’s
Domain host rules (host_header_values). For CloudFront in front of ECS, keep
distribution_aliases in sync with those host rules.4
Point DNS at the endpoint
Find the load balancer DNS name or CloudFront domain in the module’s stack outputs, and create
a CNAME to it. With a Route 53 module, use an alias
record instead, which also works at the zone apex. To move an existing domain, follow
Move an existing domain.
Related pages
ECS Cluster
Managed domains and ALB settings for
rvn-ecs-cluster.ECS Web Service
Domains and routing for
rvn-ecs-web.Static Hosting
Managed domains and CloudFront settings for
rvn-aws-static.CloudFront CDN
Managed domains and origins for
rvn-cloudfront.ACM Certificate
Certificates you manage yourself with
rvn-acm-certificate.Multi-region
Route users to the nearest region with latency-based DNS.