Closed duncanwraight closed 1 year ago
Hi folks
Is there any way we could use pytest-terraform with Terraspace?
pytest-terraform
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.
terraform plan
terraform apply
terraspace up <<stack name>>
terraform up eks-cluster
Could we override the executable commands used? Or could we run terraspace up first before running the pytest tests?
terraspace up
pytest
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.
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 useterraspace 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 thepytest
tests?