Approach 3: Flat Domain Model

No hierarchy. Each domain is independent, 1:1 mapped to an environment.

Omega Console Apps > my-app > Environments > production

production

Environment in my-app

Deployment

Status: ● Live

Last deployed: 2 hours ago

Branch: main

Default URL

https://main.d1234abcd.omega.aws

Custom Domains

0 domains
🌐

No custom domains. Add a domain to serve this environment from your own URL.

πŸ’‘ Simple model: Each domain you add is independent. No hierarchy, no nested resources. One domain β†’ one environment.
Omega Console Apps > my-app > Environments > production > Add domain

Add custom domain

Point a domain to this environment.

Enter the full domain (apex or subdomain)

This will create

staging.acme.com β†’ production

ARN: arn:aws:omega:us-east-1:123456789:apps/d1234abcd/environments/production/domains/staging.acme.com

Omega Console Apps > my-app > Environments > production > Add domain

Add custom domain

Point a domain to this environment.

Enter the full domain (apex or subdomain)

This will create

βœ“ acme.com β†’ production

βœ“ www.acme.com β†’ production

Both domains will be created atomically and share the same SSL certificate.

Omega Console Apps > my-app > Environments > production > Domains > acme.com

Verify domain ownership

Add these DNS records to verify acme.com and www.acme.com

acme.com

⏳ Pending

www.acme.com

⏳ Pending

1. Verification record

Type: CNAME
Name: _omega-challenge.acme.com
Value: _verify.d1234abcd.omega.aws

2. Routing records

acme.com (apex)

Type: A / ALIAS β†’ d1234abcd.cloudfront.net

www.acme.com

Type: CNAME β†’ d1234abcd.cloudfront.net

Omega Console Apps > my-app > Environments > production

production

Environment in my-app

Custom Domains

2 domains

acme.com

βœ“ Active β€’ πŸ”’ SSL

www.acme.com

βœ“ Active β€’ πŸ”’ SSL
πŸ’‘ Independent domains: Each domain is a separate resource. Delete www.acme.com without affecting acme.com, or vice versa.
Omega Console Apps > my-app > Hosting

All Custom Domains

ℹ️ Flat view: All domains across all environments. Each domain is independentβ€”no hierarchy.
Domain Environment Status Actions
acme.com production βœ“ Active
www.acme.com production βœ“ Active
staging.acme.com staging βœ“ Active
preview.acme.com preview βœ“ Active
Note: These are 4 independent domains. There's no "acme.com" parent resourceβ€”each domain stands alone.
Omega Console Apps > my-app > Domains > www.acme.com > Edit

Edit domain: www.acme.com

Change which environment this domain points to.

www.acme.com (cannot be changed)

⬆️ Changed from: production

Change summary

www.acme.com β†’ production

www.acme.com β†’ staging

βœ“ No re-verification needed: The domain stays verified. Only the routing changes.
Omega Console Apps > my-app > Environments > staging

πŸ—‘οΈ Delete domain

Are you sure you want to delete staging.acme.com?

βœ“ Other domains unaffected:

acme.com, www.acme.com, and preview.acme.com will continue working. Each domain is independent.

This will remove:
  • staging.acme.com β†’ staging
  • SSL certificate for staging.acme.com
πŸ’‘ Tip: If you delete the staging environment, this domain will be automatically deleted too (lifecycle is tied to environment).