Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to export RDS snapshot to S3: The Principal export.rds.amazonaws.com isn't allowed to assume the IAM role

I have this error when I'm trying to upload an RDS snapshot to the S3 (in the same region), although I have the correct IAM role:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "",
      "Effect": "Allow",
      "Principal": {
        "Service": "export.rds.amazonaws.com"
      },
      "Action": "sts:AssumeRole"
    }
  ]
}

Error message:

Your request to export snapshot to S3 has failed.
The Principal export.rds.amazonaws.com isn't allowed to assume the IAM 
role arn:aws:iam::030578524176:role/service-role/rds-export-role or 
the IAM role arn:aws:iam::030578524176:role/service-role/rds-export- 
role doesn't exist.
like image 949
Maciej Avatar asked Nov 14 '22 21:11

Maciej


1 Answers

Hi please add below in trust relationship of IAM role which you are using

"Service": "export.rds.amazonaws.com"

https://aws.amazon.com/premiumsupport/knowledge-center/rds-mysql-export-snapshot/

like image 140
Mohd Faraz lari Avatar answered Dec 10 '22 03:12

Mohd Faraz lari