Description
Set up a custom domain for the interactive platform with SSL certificate.
Proposed Domain Options
commons.ibrahimcesar.com (subdomain)
categories-of-the-commons.dev (new domain)
- Or another preferred domain
Tasks
1. Domain Registration/Setup
2. SSL Certificate (ACM)
3. Route 53 Hosted Zone
4. Update CDK Stack
Example CDK addition:
const certificate = acm.Certificate.fromCertificateArn(
this, 'Certificate', 'arn:aws:acm:us-east-1:...'
);
const distribution = new cloudfront.Distribution(this, 'Distribution', {
// ... existing config
domainNames: ['commons.example.com'],
certificate,
});
new route53.ARecord(this, 'AliasRecord', {
zone: hostedZone,
target: route53.RecordTarget.fromAlias(
new targets.CloudFrontTarget(distribution)
),
});
5. Deploy and Verify
Acceptance Criteria
- Custom domain resolves to CloudFront distribution
- HTTPS certificate valid (no browser warnings)
- All routes work on custom domain
- API endpoints accessible via domain
Related Files
interactive/infra/lib/interactive-stack.ts
Dependencies
Description
Set up a custom domain for the interactive platform with SSL certificate.
Proposed Domain Options
commons.ibrahimcesar.com(subdomain)categories-of-the-commons.dev(new domain)Tasks
1. Domain Registration/Setup
2. SSL Certificate (ACM)
3. Route 53 Hosted Zone
4. Update CDK Stack
Example CDK addition:
5. Deploy and Verify
Acceptance Criteria
Related Files
interactive/infra/lib/interactive-stack.tsDependencies