terraform/command/test-fixtures
James Nugent b62f6af158 core: Add support for marking outputs as sensitive (#6559)
* core: Add support for marking outputs as sensitive

This commit allows an output to be marked "sensitive", in which case the
value is redacted in the post-refresh and post-apply list of outputs.

For example, the configuration:

```
variable "input" {
    default = "Hello world"
}

output "notsensitive" {
    value = "${var.input}"
}

output "sensitive" {
    sensitive = true
    value = "${var.input}"
}
```

Would result in the output:

```
terraform apply

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

  notsensitive = Hello world
  sensitive    = <sensitive>
```

The `terraform output` command continues to display the value as before.

Limitations: Note that sensitivity is not tracked internally, so if the
output is interpolated in another module into a resource, the value will
be displayed. The value is still present in the state.
2016-05-09 15:46:07 -04:00
..
apply
apply-config-invalid
apply-destroy-targeted
apply-error
apply-input
apply-sensitive-output core: Add support for marking outputs as sensitive (#6559) 2016-05-09 15:46:07 -04:00
apply-shutdown
apply-vars
get
graph
init
parallelism command: fix flaky parallelism tests 2015-10-29 15:16:34 -05:00
plan
plan-emptydiff
plan-vars
push
push-input
push-input-partial
push-tfvars
refresh
refresh-output
refresh-unset-var Add failing test replicating #4013 2015-11-23 10:32:46 +02:00
refresh-var
validate-invalid Added verify command 2016-02-08 12:48:14 +01:00
validate-valid Added verify command 2016-02-08 12:48:14 +01:00