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 rdb-snapshot-period to optional #12872

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changelog/6739.txt
@@ -0,0 +1,4 @@
```release-note:bug
redis: Updated`rdb_snapshot_period` to optional in the `persistence_config` resource.

```
4 changes: 2 additions & 2 deletions google/resource_redis_instance.go
Expand Up @@ -318,8 +318,8 @@ resolution and up to nine fractional digits.`,
},
"rdb_snapshot_period": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validateEnum([]string{"ONE_HOUR", "SIX_HOURS", "TWELVE_HOURS", "TWENTY_FOUR_HOURS"}),
Optional: true,
ValidateFunc: validateEnum([]string{"ONE_HOUR", "SIX_HOURS", "TWELVE_HOURS", "TWENTY_FOUR_HOURS", ""}),
Description: `Optional. Available snapshot periods for scheduling.

- ONE_HOUR: Snapshot every 1 hour.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/redis_instance.html.markdown
Expand Up @@ -418,7 +418,7 @@ The following arguments are supported:
Possible values are `DISABLED` and `RDB`.

* `rdb_snapshot_period` -
(Required)
(Optional)
Optional. Available snapshot periods for scheduling.
- ONE_HOUR: Snapshot every 1 hour.
- SIX_HOURS: Snapshot every 6 hours.
Expand Down