Skip to content

Commit f3f10c7

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

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.changelog/6739.txt

+4
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/resource_redis_instance.go

+2-2
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

+1-1
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)