Skip to content

Add parameter to hide outputs on plan/apply; e.g. --suppressOutputs #36628

Open
@JohnLBevan

Description

@JohnLBevan

Terraform Version

Terraform v1.11.0
on windows_amd64
+ provider registry.terraform.io/hashicorp/azuread v3.1.0
+ provider registry.terraform.io/hashicorp/azurerm v4.21.1

Use Cases

When running terraform plan / terraform apply a list of changes is displayed followed by a useful summary line showing how many resources are impacted, then by Changes to Outputs: which can be quite verbose for some modules. This makes the plan harder to read, and a lot of the time you don't care about those details. Having a flag to optionally supress this would thus improve the user experience.

Others have asked for similar; e.g. https://stackoverflow.com/questions/76631023/do-not-print-outputs-on-terraform-apply

Attempted Solutions

Not attempted

Proposal

Provide a parameter (e.g. suppressOutputs) which can be set when running plan/apply (e.g. terraform plan --suppressOutputs) to prevent the Changes to Outputs section from being displayed.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions