Step1: Login to the AWS accountStep2: Navigate to the S3 bucket and go to permissions Step3: Click on edit bucket policy and add the below policy: {“Version”: “2008-10-17”,“Id”: “S3PolicyId1”,“Statement”: [{“Sid”: “IPAllow”,“Effect”: “Deny”,“Principal”: {“AWS”: “” }, “Action”: “s3:“,“Resource”: “arn:aws:s3:::bucket-name/*”,“Condition”: {“NotIpAddress”: {“aws:SourceIp”: [“ip1”,“ip2”]}}}]} Step 4: Click on save changes

Please follow the below steps to backup the MongoDB.1) Install AWS CLI with the below command.pip install awscli –upgrade –user2) Configure AWS client with the below command.aws configure3) After running the above command it will ask for the below details which are related to IAM user. If you have not… Continue Reading How to backup our MongoDB and push the file into AWS S3 in Ubuntu

Login to AWS console and go to S3. Create a new S3 bucket or if you want to copy the objects to another existing bucket, you can use it. Install and configure the AWS Command Line Interface (AWS CLI) with the below steps.a) curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip” -o “awscliv2.zip”b) unzip awscliv2.zipc) sudo… Continue Reading How to copy objects from one bucket to another bucket in the same region.