Transfer files from s3 bucket to amazon RDS database


I am trying to load data from the s3 bucket to amazon RDS database. I know this is not the programming question. But I really appreciate help. I have used the code below:

But I am getting the below error, though I have given correct ARN number:

Any comments on this?



I’m late to the game, but this is the #1 hit on Google and I spent about an hour figuring this problem out.

That error message is a bit misleading. It has nothing to do with the role or policies that you have attached to RDS. In my case, the account I was logged in as did not use a role with the proper permissions. In AWS IAM, I added the policies AmazonS3FullAccess and AmazonRDSFullAccess to my user account (well, actually added them to my assumed role because I’m using a Federated Corporate Access).

Once I did that, the error message disappeared and I was able to restore from S3

Leave a Reply