I tried to change for automated-backup retention count by gcloud command below.
gcloud alloydb clusters update XXXXXXXX\
--automated-backup-days-of-week="MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,SUNDAY" \
--automated-backup-start-times="18:00,19:00,20:00,21:00,22:00" \
**--automated-backup-retention-count=2** \
--region="XXXXXXXX \
--project="XXXXXXXX"
I thought the backup would only leave 2 data, but all data was not deleted. By the way, I was able to change the time to get the backup. Therefore, the gcloud command is successful.
I read the documents for gcloud cmmand below. https://cloud.google.com/sdk/gcloud/reference/alloydb/clusters/update
My result below. 12/27 Five backups remain. 12/28 Five backups remain. 12/29 Five backups remain. 12/30 Five backups remain. 12/31 Five backups remain. 1/1 Five backups remain. 1/2 Five backups remain. 1/3 Five backups remain. enter image description here