Reputation: 605
I want to give an intern a snapshot of my RDS DB (MySQL) so that he can play around and do some analytics with the copy. He has a valid IAM user on my AWS account.
I don't want to use a read replica; I want this to be an isolated copy of my DB.
I'm thinking the flow could be:
I think this is a viable sequence of events (correct me if I'm wrong!) but where I'm fuzzy is the last 2 steps, giving him just enough RDS access (not sure what the permissions/ACLs would be) to create his own RDS instances, and how to create those instances from the exported snapshots stored on S3. Does anybody have any ideas here? Ideally, I could limit the size of the RDS instances he can create as well, or limit them in other ways so that he can't send billing through the roof.
Upvotes: 0
Views: 567
Reputation: 3377
For the sake of safety and ease, if it's a one time effort, I would suggest you to create DB from production snapshot once for yourself and provide admin credentials for this new DB to the intern. If it's repetitive effort, create an aws cli bash script that creates new DB with latest snapshot and deletes previous one if it exists, that script will be executed by you.
But if you choose to provide AWS Access:
aws:ResourceTag/${TagKey}
, rds:DatabaseClass
.Upvotes: 3