cool-easter-32542
04/22/2025, 6:06 PMshell_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