cloud-custodian / pytest-terraform

pytest terraform plugin with fixtures and offline replay support
55 stars 19 forks source link

Compatibility with Terraspace #60

Closed duncanwraight closed 1 year ago

duncanwraight commented 1 year ago

Hi folks

Is there any way we could use pytest-terraform with Terraspace?

It's a Ruby wrapper to allow layering of configuration. Makes TF repositories cleaner and more DRY-friendly: https://terraspace.cloud/

Instead of terraform plan, terraform apply etc. we use terraspace up <<stack name>>, e.g. terraform up eks-cluster.

Could we override the executable commands used? Or could we run terraspace up first before running the pytest tests?

kapilt commented 1 year ago

Try using --tf-binary config option to try it with the terraspace wrapper, however whether it works depends on the compatibility of terraspace to terraform, and not something we would directly test or support.