HiveBrain v1.2.0
Get Started
← Back to all entries
snippetterraformMinor

Getting "(sensitive value)" from `terraform state show`, how can I uncensor the value?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
showcansensitivetheuncensorgettingvaluestatehowfrom

Problem

When I run I try to use terraform state show on variables flagged sensitive on some addresses I get

private_data = (sensitive value)


How can I get around this problem?

Solution

Unfortunately you can not. There is already a filed issue on this #32439.
Workaround

Until that's resolved you'll have to use

terraform show -json | jq QUERY


And learn how to query with jq to get what you want.

Code Snippets

terraform show -json | jq QUERY

Context

StackExchange DevOps Q#17378, answer score: 7

Revisions (0)

No revisions yet.