<Comment on #22208 Using `shell_command` with `ter...
# github-notifications
c
Comment on #22208 Using `shell_command` with `terraform_deployment` Discussion answered by lilatomic 2 things are needed: 1. you need to collect the files output by the
shell_command
shell_command( name="tf_workspace", command="terraform workspace new ${TF_WORKSPACE} || terraform workspace select ${TF_WORKSPACE}", tools=["terraform"], extra_env_vars=["TF_WORKSPACE"], log_output=True, + output_files=[".terraform/environment"], + output_directories=["terraform.tfstate.d"], # maybe just for local state ) 1. you need #22202 which allows pulling in
resources
. This patch is targetting release in 2.27 pantsbuild/pants