Skip to content

Commit 3a35888

Browse files
Fix alloydb_cluster permadiff (#7421) (#13948)
Signed-off-by: Modular Magician <[email protected]>
1 parent 98228a7 commit 3a35888

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changelog/7421.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
alloydb: fix permadiff on `automated_backup_policy.weekly_schedule` of `google_alloydb_cluster`
3+
```

google/resource_alloydb_cluster.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func ResourceAlloydbCluster() *schema.Resource {
5858
},
5959
"automated_backup_policy": {
6060
Type: schema.TypeList,
61+
Computed: true,
6162
Optional: true,
6263
Description: `The automated backup policy for this cluster.
6364
@@ -67,7 +68,8 @@ If no policy is provided then the default policy will be used. The default polic
6768
Schema: map[string]*schema.Schema{
6869
"weekly_schedule": {
6970
Type: schema.TypeList,
70-
Required: true,
71+
Computed: true,
72+
Optional: true,
7173
ForceNew: true,
7274
Description: `Weekly schedule for the Backup.`,
7375
MaxItems: 1,

0 commit comments

Comments
 (0)