Overview
The Domain resource manages DNS infrastructure using BIND zone files as the primary interface. It creates Route53 hosted zones, DNS records, ACM certificates, and cross-account delegation roles.Quick Start
Zone File Format
Configure domains via standard BIND zone files with Fjall extensions:Fjall Extensions
$FJALL-CERT: ACM Certificate
Request an ACM certificate with automatic DNS validation:
$FJALL-DELEGATE: Cross-Account Delegation
Delegate a subdomain to another AWS account:
ALIAS: Application Binding
Point DNS records to Fjall-managed applications:
Supported Record Types
| Type | Example |
|---|---|
A | @ IN A 1.2.3.4 |
AAAA | @ IN AAAA 2001:db8::1 |
CNAME | www IN CNAME example.com |
MX | @ IN MX 10 mail.example.com |
TXT | @ IN TXT "v=spf1 ..." |
NS | sub IN NS ns1.other.com |
SRV | _sip._tcp IN SRV 10 60 5060 sip.example.com |
CAA | @ IN CAA 0 issue "letsencrypt.org" |
CLI Commands
Thefjall domain command groups every domain operation: create, deploy, verify, export, list, import, eject.
Create
Deploy
<domain> is required. Deploy each domain by name:
Verify
Check DNS propagation and nameserver delegation:--show-delegation to print registrar-style delegation instructions instead (requires a prior successful deploy).
Export
Export live Route53 records to a local zone file:Import
List
Organisation Integration
Domains deploy automatically duringfjall deploy organisation:
Configuration
Fjall tracks managed domains infjall-config.json under the domains field:
{ name, type: "apex" | "delegated", parentDomain?, account? }. fjall-config.json holds only two fields, domains and activeTarget. Account, region, and authentication data live in your organisation config, which the CLI fetches from the Fjall API.
Application Binding
When Fjall manages a domain, application stacks reference the domain’s hosted zone and certificate via CloudFormation cross-stack exports. This binding is automatic when an application’s domain matches a managed domain. The block below is illustrative, the wiring happens for you during deploy:External DNS Registrar
For domains registered outside AWS, point your registrar’s nameservers to Route53:- Run
fjall domain create example.com - Run
fjall domain deploy example.com - Run
fjall domain verify example.comto read the nameservers - Update your registrar’s NS records to point to the Route53 nameservers
File Structure
Next Steps
Load Balancer
Route traffic to your applications behind an AWS load balancer.
VPC
Configure VPCs, subnets, and routing for your AWS infrastructure.
ECS Cluster
Run containerised applications on ECS behind your domain.
Deploy
Ship your domains and applications to AWS with the Fjall CLI.