Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can "terraform plan" and "terraform apply" have an option to not show the sentinel policies #36009

Open
scott-doyland-burrows opened this issue Nov 14, 2024 · 3 comments
Labels
cloud Related to Terraform Cloud's integration with Terraform enhancement new new issue not yet triaged

Comments

@scott-doyland-burrows
Copy link

scott-doyland-burrows commented Nov 14, 2024

Terraform Version

Terraform v1.9.8
on linux_amd64
+ provider registry.terraform.io/hashicorp/tfe v0.60.0

Use Cases

When I run a plan or apply locally against a remote execution workspace, I see the sentinel policies.

I have to scroll up a few pages to see the actual plan output.

Attempted Solutions

terraform plan -var-file=tfvars/workspaces.tfvars | sed /^-----/q

This will prevent the sentinel policies from showing - but it is a pain to type it

Proposal

terraform plan -var-file=tfvars/workspaces.tfvars -show-sentinel=false

or

export TF_SHOW_SENTINEL=false

References

No response

@scott-doyland-burrows scott-doyland-burrows added enhancement new new issue not yet triaged labels Nov 14, 2024
@jbardin
Copy link
Member

jbardin commented Nov 14, 2024

Hi @scott-doyland-burrows,

Terraform doesn't run sentinel or know anything about its policies, so there's not really any way for it to control the output.

I'm guessing you are using the cloud backend, and executing the plan remotely? If that's the case then it probably needs to be an Cloud/TFE feature to deal with the option, since Terraform is essentially only echoing the remote process's output.

@scott-doyland-burrows
Copy link
Author

Yes, I am using the cloud backend.

I'll try and find out where to raise terraform cloud feature requests.

@jbardin jbardin added the cloud Related to Terraform Cloud's integration with Terraform label Nov 15, 2024
@crw
Copy link
Collaborator

crw commented Nov 18, 2024

@scott-doyland-burrows you can find all of that information in our bug report template!

https://github.com/hashicorp/terraform/issues/new?assignees=&labels=bug%2Cnew&projects=&template=bug_report.yml

The relevant information is:

HCP Terraform or Terraform Enterprise: please email [email protected] or open a new request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cloud Related to Terraform Cloud's integration with Terraform enhancement new new issue not yet triaged
Projects
None yet
Development

No branches or pull requests

3 participants