dm cluster init currently sets up a new cluster and generates a random key. Unfortunately, we cannot always capture that key to use later, but may be able to set it before running.
We should be able to do dm cluster init --apikey <somekey> or perhaps dm cluster init where it reads an env var named DOTMESH_APIKEY to set it to that.
Perfectly fine if it has minimum requirements, as long as if the key is set and it does not match those requirements, it fails, rather than overriding.
dm cluster init
currently sets up a new cluster and generates a random key. Unfortunately, we cannot always capture that key to use later, but may be able to set it before running.We should be able to do
dm cluster init --apikey <somekey>
or perhapsdm cluster init
where it reads an env var namedDOTMESH_APIKEY
to set it to that.Perfectly fine if it has minimum requirements, as long as if the key is set and it does not match those requirements, it fails, rather than overriding.