Internal Service: _background_acm_upgrade
Upgrades from Letβs Encrypt certificate to ACM-native certificate for automatic renewal.Purpose
Letβs Encrypt certificates expire after 90 days and require manual renewal. ACM certificates auto-renew indefinitely. This background task upgrades to ACM after the proxy is deployed.Function Signature
Parameters
| Parameter | Type | Description |
|---|---|---|
domain | str | The custom domain (e.g., βwww.example.comβ) |
distribution_id | str | CloudFront distribution ID |
old_certificate_arn | str | Current Letβs Encrypt certificate ARN |
entity_id | str | Database entity ID |
org_id | str | Clerk organization ID |
Execution Flow
Timing
- Delay: 60 seconds after Step 2 completes
- Duration: 2-10 minutes (ACM validation time)
- Non-blocking: User doesnβt wait for this
Dependencies
src/app/apis/domain/shared/acm_upgrade.py-upgrade_to_acm_native()