I’m trying unsuccessfully to provision TLS for a Heroku site, following the basic steps listed in this Heroku dev center article. When running the following command:
heroku fastly:tls www.mydomain.com --app my-heroku-app
I get the following error:
! Fastly API request Error! code: 400 Bad Request Domain is not associated with your service.
Some background which might be relevant to the issue:
We’re in the process of spinning up this new Heroku application to replace an existing site also on Heroku. The current site has been running under Fastly through a Heroku plugin for a few months now using the domain I’m now trying to assign to this new Fastly instance. I’ve removed the domain from the Fastly configuration for the old site (DNS for that is now pointed directly at Heroku rather than Fastly) and added the domain to the Fastly configuration for the new site.