Deploy your infrastructure via a CircleCI pipeline using the Terraform orb. Integrate Infrastructure-as-Code (IaC) to help provision and manage any cloud, infrastructure, or service of your choice.
Is your feature request related to a problem? Please describe.
Sometimes it can be interesting to set the workspace for init, e.g. if some resources in the state need a provider which is not in the module anymore, and won't be downloaded without the correct state set (thats a behavior we don't see often, but we had to correct that in our pipelines).
Describe alternatives you've considered
Setting the TF_WORKSPACE variable, but its scope is the full job and it does not create automatically the workspace like other commands of this orbs do.
Additional context
I can open the PR inspired on the the PR 78 if that's ok with the maintainers.
Is your feature request related to a problem? Please describe. Sometimes it can be interesting to set the workspace for init, e.g. if some resources in the state need a provider which is not in the module anymore, and won't be downloaded without the correct state set (thats a behavior we don't see often, but we had to correct that in our pipelines).
Describe the solution you'd like Something like https://github.com/CircleCI-Public/terraform-orb/pull/78
Describe alternatives you've considered Setting the TF_WORKSPACE variable, but its scope is the full job and it does not create automatically the workspace like other commands of this orbs do.
Additional context I can open the PR inspired on the the PR 78 if that's ok with the maintainers.