Skip to content

Use your own domain ​

Without a domain, n8n answers on the default name that CloudFront or the load balancer gives it, such as d111111abcdef8.cloudfront.net, over plain HTTP. That is fine for a first test. For real use you want a name like n8n.example.com and HTTPS, because webhooks and login walls need a URL that does not change, and n8n must know its public URL.

This guide covers the three things you need: a domain in Route 53, a certificate in AWS Certificate Manager (ACM), and the ingress keys that tie them together. An ACM certificate is the TLS certificate that CloudFront or the load balancer presents to browsers. See concepts for the other terms.

Create the zone and the certificate with the tool ​

This is the shortest path when the domain is in a Route 53 hosted zone of the same account.

yaml
ingress:
  kind: cloudfront
  domain: n8n.example.com
  hosted_zone: {kind: lookup, name: example.com}
  certificate: {kind: create}

The tool looks up the zone example.com, asks ACM for a certificate for n8n.example.com, adds the DNS validation record to the zone, and creates the DNS alias that points the domain to CloudFront or the load balancer. CloudFront only accepts a certificate from us-east-1, so bootstrap that region too (see troubleshooting).

The nano sample is a complete file that does this. See shapes.

Use a certificate you already have ​

When your company issues certificates, or the DNS is not in Route 53, give the ARN of the certificate.

yaml
ingress:
  domain: n8n.apps.example.com
  hosted_zone: {kind: none}
  certificate: {kind: existing, arn: arn:aws:acm:eu-west-1:123456789012:certificate/abcd-1234}

With hosted_zone: {kind: none}, the tool creates no DNS record. You point the name to the address of the load balancer or of the distribution yourself. A zone that exists in another account is the case for {kind: existing, id: ..., name: ...}. The existing-landing-zone sample uses an existing certificate and no zone.

What the rules check ​

  • A domain needs a certificate (T9).
  • cloudfront-cognito needs a domain of yours for the Cognito callback (T7).
  • Without a domain, the deployment is plain HTTP on the default name. Use it for nano or dev only, and expect a warning.

Remove it ​

destroy deletes the DNS alias and keeps the validation record. cleanup deletes the validation record of a certificate that the tool created. See troubleshooting.