Migrate data from AWS DocumentDB account to another Document DB account? - amazon-web-services

I have two different accounts in AWS and I need to move/copy the data from one DocumentDB in one account to the other account.
Some of you knows how to do this task? I am thinking about do it programmatically but I am not sure if this is a good idea.
Thank you in advance for your help.

DocumentDB allows you to share a cluster snapshot with different AWS account in the same region. You can find more information on it here:
https://docs.aws.amazon.com/documentdb/latest/developerguide/backup-restore.db-cluster-snapshot-share.html

Related

How to transfer AWS RDS to different role

We have two AWS roles/accounts, and I hosted our PostgreSQL in one account, and later I was notified this role would be disabled shortly, and I need to transfer our database to another AWS accounts. So I made a snapshot of the DB from one to another. I'm wondering if the original account is deleted in the future, does my snapshot also get impacted? Thanks for the clarification
I agree with #erik258. I am sharing this article that says you can't transfer resources between accounts. However, you can migrate Amazon RDS resources to another account.
To migrate Amazon RDS resources to another account, follow these instructions:
Create a DB snapshot.
Share the snapshot with the target account.
Create a new DB instance in the target account by restoring the DB snapshot.

How to list the AWS services I'm paying for

I'm stuck with the AWS service. I can't find what services are being turned on. I can't find them, even I can't see why the number of services is increasing over time and I am being charged. Please help me.
I have deleted the S3 buckets I started and closed two EFS instances from the AWS console. But still, I am being charged.
You can use aws-nuke to remove resources in your account. Simple to use and support many services.
Have you checked the AWS cost-explorer dashboard? Please check the same and see which services are being charged today. Go and delete them if you are not using them.
If you don't want any AWS service, go and suspend your AWS account. :P
If you want more help.. contact us on https://www.cloudkaramchari.com/contact/
#Cloudkaramchari

Best practices for AWS cross account RDS snapshot share programatically

I have the following AWS cross account use case where Account A belong
to another team and my team is the owner of account B.
AWS account A would like to copy/share snapshot of AWS RDS
Oracle to AWS account B
Process/curate data by restoring snapshot in RDS instance and
using AWS Step Functions workflow in account B
Share snapshot back to AWS account A from account B.
I am using boto3 APIs and have working step functions code and I am looking for advice on solving step 1) and 3). I am thinking of asking account A team to write a Lambda which share snapshot and trigger Cloudwatch event which account B listens to and another lambda to share snapshot back to account A programmatically. I am not sure if that is an optimal approach and if there is any better way.
For an "optimal approach" - Have you considered using AWS backup? If the accounts are under the same organization AWS backup can do this all for you.
See here: https://docs.aws.amazon.com/aws-backup/latest/devguide/manage-cross-account.html
and here: https://aws.amazon.com/getting-started/hands-on/amazon-rds-backup-restore-using-aws-backup/

How Can I check events on AWS EFS using python code

I am trying with AWS EFS in multiple accounts. I need to know if the tag value of EFS got changed to some other values in all accounts from a centralized account using python code. How can I implement this event based triggering?
Thanks in advance,

AWS Document DB MultiRegion replication

I know that the AWS DocumentDB doesnot support multiregion replication even the snapshot cannot be shared across regions.
Please suggest how we can manually do the replication
Sam,
AWS released cross-region snapshot copy today (7/10/20), so that should get you what you need. Good luck.
https://aws.amazon.com/about-aws/whats-new/2020/07/amazon-documentdb-support-cross-region-snapshot-copy/
Thank you for the feedback, Sam. A couple of options are to use change streams + Lambda/worker to replicate the data or to take take backups to S3 with mongodump and utilize S3's cross-region replication capabilities.
Amazon DocumentDB now supports global clusters. The primary cluster supports writes and read-scaling, up to 5 regions can be added as read-only, see https://aws.amazon.com/documentdb/global-clusters/