- Newest
- Most votes
- Most comments
Check the encryption on the bucket and make sure the IAM role has decrypt permission to the key
Based on the error message you received, it appears that there might be an issue with permissions or access to the S3 bucket containing your backup file. Here are some suggestions to troubleshoot and resolve the issue:
-
Verify IAM Role Permissions: Ensure that the IAM role associated with your RDS instance has the necessary permissions to access the S3 bucket and the specific backup file. The role should have both read and list permissions for the S3 bucket.
-
Check S3 Bucket Policy: Review the S3 bucket policy to confirm that it allows access from your RDS instance. Make sure the policy grants the required permissions to the IAM role used by your RDS instance.
-
Confirm Option Group Configuration: Double-check that the SQLSERVER_BACKUP_RESTORE option is correctly added to your DB instance's option group. This option is required for native backup and restore operations.
-
Verify S3 Bucket Region: Ensure that the S3 bucket containing your backup file is in the same AWS region as your RDS instance. Cross-region restores are not supported.
-
Check Backup File Integrity: Verify that the .bak file in your S3 bucket is not corrupted and is a valid SQL Server backup file.
-
Review RDS Instance Encryption: If your RDS instance is encrypted, make sure you've provided a customer-managed KMS key in the IAM role and in the restore procedure.
-
Confirm Backup File Size: Ensure that your backup file doesn't exceed the 5 TB size limit for S3 objects.
-
Check Concurrent Tasks: Verify that you don't have more than two backup or restore tasks running simultaneously on your RDS instance.
If you've verified all these points and are still encountering issues, you may want to review the AWS CloudTrail logs for more detailed error information or contact AWS Support for further assistance.
Sources
Importing and exporting SQL Server databases using native backup and restore - Amazon Relational Database Service
SQL Server database backup and restore using Amazon S3 - Database Migration Guide
Access to transaction log backups with RDS for SQL Server - Amazon Relational Database Service
Relevant content
asked 3 years ago

Thank you Gary, during another check on Iam Role, we found that db source for restore was not declared in json for that role. Solved. Thank you again