In the cloud, you can easily set up notifications for events in your workload. AWS Backup leverages AWS SNS to send notifications regarding ongoing backup operations. This will allow visibility of fallback job statuses, rollback job statuses, or any errors that may have occurred, allowing your Operations teams to respond appropriately.
Open a Terminal with access to the AWS CLI. Make sure that the CLI is up to date and that you have AWS Administrator Permissions to run AWS CLI commands.
aws backup put-backup-vault-notifications --region ap-southeast-1 --backup-vault-name BACKUP-LAB-VAULT --backup-vault-events BACKUP_JOB_COMPLETED RESTORE_JOB_COMPLETED --sns-topic-arn <YOUR SNS TOPIC ARN >
aws backup get-backup-vault-notifications --backup-vault-name BACKUP-LAB-VAULT --region ap-southeast-1
You have now successfully enabled notifications for BACKUP-LAB-VAULT, ensuring that the Operations team is aware of the completion of the backup and restore operations related to this vault and any associated errors. to those activities.