Skip to content

Commit

Permalink
Merge pull request #1850 from terraform-providers/f-vpn-conn-sensitive
Browse files Browse the repository at this point in the history
r/vpn_connection: Mark preshared keys as sensitive
  • Loading branch information
radeksimko authored Oct 10, 2017
2 parents 71d64c3 + 5562d88 commit 71b43ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions aws/resource_aws_vpn_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ func resourceAwsVpnConnection() *schema.Resource {
},

"tunnel1_preshared_key": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Sensitive: true,
Computed: true,
},
"tunnel1_bgp_asn": {
Type: schema.TypeString,
Expand All @@ -146,8 +147,9 @@ func resourceAwsVpnConnection() *schema.Resource {
},

"tunnel2_preshared_key": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Sensitive: true,
Computed: true,
},
"tunnel2_bgp_asn": {
Type: schema.TypeString,
Expand Down
3 changes: 3 additions & 0 deletions website/docs/r/vpn_connection.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ description: |-

Provides a VPN connection connected to a VPC. These objects can be connected to customer gateways, and allow you to establish tunnels between your network and the VPC.

~> **Note:** All arguments including `tunnel1_preshared_key` and `tunnel2_preshared_key` 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
Expand Down

0 comments on commit 71b43ae

Please sign in to comment.