Skip to content

Commit f61f75a

Browse files
set rdb-snapshot-period to optional (#6739) (#4821)
Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
1 parent e182366 commit f61f75a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.changelog/6739.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```release-note:bug
2+
redis: Updated`rdb_snapshot_period` to optional in the `persistence_config` resource.
3+
4+
```

google-beta/resource_redis_instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ resolution and up to nine fractional digits.`,
318318
},
319319
"rdb_snapshot_period": {
320320
Type: schema.TypeString,
321-
Required: true,
322-
ValidateFunc: validateEnum([]string{"ONE_HOUR", "SIX_HOURS", "TWELVE_HOURS", "TWENTY_FOUR_HOURS"}),
321+
Optional: true,
322+
ValidateFunc: validateEnum([]string{"ONE_HOUR", "SIX_HOURS", "TWELVE_HOURS", "TWENTY_FOUR_HOURS", ""}),
323323
Description: `Optional. Available snapshot periods for scheduling.
324324
325325
- ONE_HOUR: Snapshot every 1 hour.

website/docs/r/redis_instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ The following arguments are supported:
418418
Possible values are `DISABLED` and `RDB`.
419419

420420
* `rdb_snapshot_period` -
421-
(Required)
421+
(Optional)
422422
Optional. Available snapshot periods for scheduling.
423423
- ONE_HOUR: Snapshot every 1 hour.
424424
- SIX_HOURS: Snapshot every 6 hours.

0 commit comments

Comments
 (0)