aws backup \
update-restore-testing-plan \
--restore-testing-plan-name "test001" \
--restore-testing-plan 'RecoveryPointSelection={Algorithm=LATEST_WITHIN_WINDOW,ExcludeVaults=[],IncludeVaults=[*],RecoveryPointTypes=["SNAPSHOT"],SelectionWindowDays=7},ScheduleExpression="cron(30 0 ? * * *)",ScheduleExpressionTimezone="UTC",StartWindowHours=1'
# --restore-testing-plan-name ## The name of the restore testing plan to update
# --restore-testing-plan ## New values you want to update
UpdateRestoreTestingSelection
aws backup \
update-restore-testing-selection \
--restore-testing-plan-name "test001" \
--restore-testing-selection-name "test001" \
--restore-testing-selection 'IamRoleArn="arn:aws:iam::<MY_AWS_ACCOUNT_ID>:role/<IAM_ROLE_NAME>",ProtectedResourceArns='["*"]',RestoreMetadataOverrides={AvailabilityZones="[\"eu-west-1a\"]",optionGroupName="default:mysql-8-0"},ValidationWindowHours=3'
# --restore-testing-plan-name ## The name of the restore-testing plan
# --restore-testing-selection-name ## The name of the restore testing selection to update
# --restore-testing-selection ## New values you want to update
Delete:
DeleteRestoreTestingSelection
This needs to be deleted first, otherwise, you'll get the error An error occurred (InvalidRequestException) when calling the DeleteRestoreTestingPlan operation: Related restore testing selections must be deleted prior to deleting restore testing plan [test001].
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
On Nov 27 - 2023, AWS announced the AWS Backup restore testing. This can be used to automate the DR testing based on the AWS Backups. They made a blog post showing how it works.
Requested Resource(s) and/or Data Source(s)
Resource
Data
Potential Terraform Configuration
References
AWS Go SDK v2
Create:
Delete:
Get:
List:
Update:
AWS CLI examples
AWS CLI version
2.15.56
.Ordered by execution, like create, get, list, update, and delete.
Create:
Get:
List:
Update:
Delete:
This needs to be deleted first, otherwise, you'll get the error
An error occurred (InvalidRequestException) when calling the DeleteRestoreTestingPlan operation: Related restore testing selections must be deleted prior to deleting restore testing plan [test001].
Would you like to implement a fix?
No