20786

Transfer files from s3 bucket to amazon RDS database

Question:

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:

aws rds restore-db-instance-from-s3 ^ --allocated-storage 250 ^ --db-instance-identifier myidentifier ^ --db-instance-class db.m4.large ^ --engine mysql ^ --master-user-name masterawsuser ^ --master-user-password masteruserpassword ^ --s3-bucket-name mybucket ^ --s3-ingestion-role-arn arn:aws:iam::account-number:role/rolename ^ --s3-prefix bucketprefix ^ --source-engine mysql ^ --source-engine-version 5.6.27

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

“An error occurred (InvalidParameterValue) when calling the RestoreDBInstanceFrom S3 operation: IAM role ARN value is invalid or does not include the required permissions for: S3_SNAPSHOT_INGESTION”

Any comments on this?

Thanks

Answer1:

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

Recommend

  • Passing typesafe config conf files to DataProcSparkOperator
  • Unable to “List channel messages” on Azure AD Graph API Beta
  • Proving a property of Subset relation on list of pairs
  • SQL CDC data processing options
  • Add clickable imageView in expandableListView
  • Geofencing in background on Android 8 or 9 does not work
  • Laravel edit existing pdf
  • Low impact encryption formula for ROBLOX Lua
  • Application crashes with Assertion Failure message while updating SQLite database
  • Webpack with babel-loader not emitting valid es5
  • Jmockit: Can't mock method toString of net.android.Uri class
  • Save cropped image from ng-src
  • Azure function C#: Create or replace document in cosmos db on HTTP request
  • Byte Array to *Signed* Int
  • Apple Push Notification Bundle Name
  • How to use Sanitize on HTML Entity
  • Rails - Use a class method from a another class method with one attribute of the second class
  • RestKit - Process one REST operation at a time
  • CodenameOne - FirebaseApp not initializing
  • svnserve and SASL problem
  • How to change selected item position to top in Recyclerview?
  • How do I convert between time formats?
  • How can I run an Illustrator javascript on all files in a directory?
  • Misplaced CAGradientLayer on iPhone 6s
  • Overwrite text file programmatically
  • Visual Studio MSB3721 error when compiling a __device__ function call from another file
  • Django REST framework - HyperlinkedRelatedField with additional parameter
  • opencv deskewing a contour
  • using maven pom while creating jar:test-jar some times it says JAR will be empty - no content was ma
  • Is there a better way for handling SpatialPolygons that cross the antimeridian (date line)?
  • Another “Cannot make static reference…” Question
  • Computing the discrete fourier transform of audio data with FFTW
  • Running R's aov() mixed effects model from Python using rpy2