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

The command `cdev plan` does not process datasources #290

Open kinseii opened 2 months ago

kinseii commented 2 months ago

Problem: I have a terraform module that retrieve a value from Azure Key Vault. Every time I run the cdev plan command in the plan outputs outputs want to recreate. As I understand it, cdev doesn't run the plan of the terraform code itself, it is its own plan and therefore it doesn't know if there are changes and forcefully marks datasource dependent resources for recreation.

Running cdev build and then terraform plan commands in the created module reveals no changes, as we would expect. I take it this is on design? If this is not a bug, then we need a function to run the plan command for terraform modules.

Cluster.dev Version: v0.9.5