Custom HTTPS Domain for AWS EC2
Point an A record at your EC2 Elastic IP with Caddy TLS. Behind an AWS ALB, use agentdomains proxy instead.
Origin-to-edge flow for AWS EC2: connect 198.51.100.80 to ec2-node.agentdomains.co with automatic HTTPS.
1. Choose Mode: Edge Proxy vs DNS-01
Edge HTTPS Reverse Proxy
FOR PAAS HOSTS- Point at any public hostname without
https://. - Cloudflare edge handles TLS 1.3 automatically.
- Zero Certbot config and zero IP exposure.
A Record + ACME DNS-01
RECOMMENDED- Point directly at your server IPv4 or IPv6 address.
- Issue certs via Caddy or
agentdomains txtDNS-01. - Works even when your firewall blocks port 80.
agentdomains signup
agentdomains claim ec2-node --email you@example.com --domain agentdomains.co
agentdomains record ec2-node --domain agentdomains.co --type A --content 198.51.100.80
2. Interactive: Generate My CLI Command
Enter your subdomain label and origin below. Copy the generated commands or check live name availability.
3. AWS EC2 Origin Configuration
Apply this config on AWS EC2 so headers, TLS, and routing match your new hostname.
# If fronting an AWS ALB hostname instead of a bare EC2 IP:
agentdomains proxy ec2-node my-alb-123456.us-east-1.elb.amazonaws.com
Operational Checklist
- Ensure your EC2 Security Group allows inbound TCP 80 and 443 from
0.0.0.0/0. - EC2 IPs change on stop/start without an Elastic IP. Update the A record in a boot script if needed.
Frequently asked questions
Should I use edge proxy or an A record for AWS EC2?
Point an A record at your EC2 Elastic IP with Caddy TLS. Behind an AWS ALB, use agentdomains proxy instead.
How do I check DNS propagation for AWS EC2?
Open /tools/dns-ssl-checker or run dig @1.1.1.1 ec2-node.agentdomains.co. Confirm both Cloudflare and Google return your record.
Can an AI agent configure AWS EC2 routing via MCP?
Yes. Connect your client to https://mcp.agentdomains.co. Ask it to call claim_domain and add_dns_record.
Related Host Playbooks
AWS Lightsail
Attach a Lightsail Static IP and add an A record. Enable HTTPS with Caddy or bncert-tool.
Oracle Cloud (OCI Free Tier)
Point an A record at your OCI Always Free ARM VM public IP. Remember OCI requires opening ports 80/443 in BOTH the VCN Security List AND the VM’s local iptables!
Google Cloud Run
Use agentdomains proxy in front of your *.a.run.app host. It works globally in seconds, unlike regional Cloud Run mappings.
Linode (Akamai Cloud)
Set an A record (and optional AAAA) to your Linode IP and let Caddy or Certbot handle TLS.
Claim your agent domain now
Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.