shalb / cluster.dev

Cloud-native infrastructure templating. Creating cloud installers for SaaS. Replication of complex cloud-native infrastructures.
https://docs.cluster.dev/
GNU Affero General Public License v3.0
401 stars 36 forks source link

Import to state files #254

Open kinseii opened 4 months ago

kinseii commented 4 months ago

What would you like to add Is it possible to make an implementation of importing the current state into state files?

Why is this needed I would like to migrate the current infrastructure to cluster.dev, but to do this I need to import the state of the infrastructure into the state files.

romanprog commented 4 months ago

Hello. Thanks for the request, we already have quite a few requests for such functionality. This is a rather complex task, on which we are already working. Since cdev mostly only generates terraform code - "import" is not quite the right name. We will add to cdev stackTemplate a new type of unit tf-dir , which will allow users to integrate into the project a directory with terraform code that has already been applied without cdev and has its own state. Other units will be able to refer to the output of this code. The release of the new unit is expected in the next 2-3 weeks.