Skip to content

Commit

Permalink
set required for secret_data (#4627) (#8797)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Mar 30, 2021
1 parent 26b3ea2 commit 758fe09
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/4627.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
secretmanager: Set required on `secrest_data` in `google_secret_manager_secret_version`
```
2 changes: 1 addition & 1 deletion google/resource_secret_manager_secret_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func resourceSecretManagerSecretVersion() *schema.Resource {
Schema: map[string]*schema.Schema{
"secret_data": {
Type: schema.TypeString,
Optional: true,
Required: true,
ForceNew: true,
Description: `The secret data. Must be no larger than 64KiB.`,
Sensitive: true,
Expand Down
10 changes: 5 additions & 5 deletions website/docs/r/secret_manager_secret_version.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ resource "google_secret_manager_secret_version" "secret-version-basic" {
The following arguments are supported:


* `secret_data` -
(Required)
The secret data. Must be no larger than 64KiB.
**Note**: This property is sensitive and will not be displayed in the plan.

* `secret` -
(Required)
Secret Manager secret resource
Expand All @@ -75,11 +80,6 @@ The following arguments are supported:
(Optional)
The current state of the SecretVersion.

* `secret_data` -
(Optional)
The secret data. Must be no larger than 64KiB.
**Note**: This property is sensitive and will not be displayed in the plan.


## Attributes Reference

Expand Down

0 comments on commit 758fe09

Please sign in to comment.