-
Couldn't load subscription status.
- Fork 86
Description
I am able to create a new Heroku Postgres addon using the Platform API. However, it is not clear how to provision a fork of an existing database and wait until the fork is complete.
I tried the following two options to provision the fork:
hk.addon.create('apartmentlist-production', { 'plan' => 'heroku-postgresql:standard-tengu', 'fork' => 'heroku-postgresql-black' } )
hk.addon.create('apartmentlist-production', { 'plan' => 'heroku-postgresql:standard-tengu', 'fork' => 'HEROKU_POSTGRESQL_BLACK_URL' } )
Both of the above provision an addon, but do not fork an existing DB.
Also, when I use the addon.info endpoint, I do not get any of the info that heroku pg:info command gives me. In particular I see no way to know if a newly provisioned DB has caught up and is ready for queries.
If Platform API is not the right tool for it, is there any other Heroku API that can help me accomplish forking a database and waiting until it is ready?