r/compute_vpn_tunnel: Mark 'shared_secret' as sensitive

This commit is contained in:
Radek Simko 2017-10-10 12:54:47 +01:00
parent 888df75f39
commit 0e5b4b0597
No known key found for this signature in database
GPG Key ID: 1F1C84FE689A88D7
2 changed files with 7 additions and 3 deletions

View File

@ -34,9 +34,10 @@ func resourceComputeVpnTunnel() *schema.Resource {
},
"shared_secret": &schema.Schema{
Type: schema.TypeString,
Required: true,
ForceNew: true,
Type: schema.TypeString,
Required: true,
Sensitive: true,
ForceNew: true,
},
"target_vpn_gateway": &schema.Schema{

View File

@ -11,6 +11,9 @@ description: |-
Manages a VPN Tunnel to the GCE network. For more info, read the
[documentation](https://cloud.google.com/compute/docs/vpn).
~> **Note:** All arguments including the `shared_secret` will be stored in the raw state as plain-text.
[Read more about sensitive data in state](/docs/state/sensitive-data.html).
## Example Usage
```hcl