Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set required for secret_data #8797

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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