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

Marked these fields for AlloyDB cluster as default_from_api: backup_window, enabled and location #15444

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/8589.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
alloydb: changed `backup_window`, `enabled` and `location` fields to default to API value when unset in `google_alloydb_cluster`
```
3 changes: 3 additions & 0 deletions google/services/alloydb/resource_alloydb_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func ResourceAlloydbCluster() *schema.Resource {
Schema: map[string]*schema.Schema{
"backup_window": {
Type: schema.TypeString,
Computed: true,
Optional: true,
Description: `The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed.

Expand All @@ -88,6 +89,7 @@ A duration in seconds with up to nine fractional digits, terminated by 's'. Exam
},
"enabled": {
Type: schema.TypeBool,
Computed: true,
Optional: true,
Description: `Whether automated backups are enabled.`,
},
Expand All @@ -114,6 +116,7 @@ A duration in seconds with up to nine fractional digits, terminated by 's'. Exam
},
"location": {
Type: schema.TypeString,
Computed: true,
Optional: true,
Description: `The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster.`,
},
Expand Down