Issue
A domain association for a deleted Amplify app is blocking a new app from claiming the same subdomain.
Account: 026090538781
Region: us-east-1
Subdomain: allisterevents.okaywinston.com
New App ID: d24nyugd8w0wp3
Steps to reproduce
- Had an Amplify app with domain association for
allisterevents.okaywinston.com
- Deleted the app
- Created new app
d24nyugd8w0wp3
- Tried
aws amplify create-domain-association --app-id d24nyugd8w0wp3 --domain-name okaywinston.com --sub-domain-settings '[{"prefix":"allisterevents","branchName":"main"}]'
Error
BadRequestException: One or more domains requested are already associated with another Amplify app: allisterevents.okaywinston.com
Also blocked at CloudFront level: CNAMEAlreadyExists when attempting to create a CloudFront distribution with this CNAME alias, even though the old CloudFront distribution (d2fb89kwqcfdsw.cloudfront.net) is no longer in our account.
Expected behavior
Deleting an Amplify app should release its domain associations so they can be used with new apps.
Workaround
Using events.okaywinston.com as a different subdomain for now.
Issue
A domain association for a deleted Amplify app is blocking a new app from claiming the same subdomain.
Account: 026090538781
Region: us-east-1
Subdomain:
allisterevents.okaywinston.comNew App ID:
d24nyugd8w0wp3Steps to reproduce
allisterevents.okaywinston.comd24nyugd8w0wp3aws amplify create-domain-association --app-id d24nyugd8w0wp3 --domain-name okaywinston.com --sub-domain-settings '[{"prefix":"allisterevents","branchName":"main"}]'Error
Also blocked at CloudFront level:
CNAMEAlreadyExistswhen attempting to create a CloudFront distribution with this CNAME alias, even though the old CloudFront distribution (d2fb89kwqcfdsw.cloudfront.net) is no longer in our account.Expected behavior
Deleting an Amplify app should release its domain associations so they can be used with new apps.
Workaround
Using
events.okaywinston.comas a different subdomain for now.