GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jpolara2016/Lambda-S3-Replication: AWS Lambda function to replicate S3 objects

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
copy_objects.py
copy_objects.py
 
 
delete_objects.py
delete_objects.py
 
 

Repository files navigation

Lambda-S3-Replication

These two different lambda functions will allow you to copy objects to another bucket when there is a put event, and delete objects when there is a delete event in the source bucket.

There are 2 functions for copying and deleting objects so use it accordingly however it meets your needs.

Requirements

  1. IAM Role Policy:
{
  "Version": "2012-10-17",
  "Id": "Policy1591045332632",
  "Statement": [
      {
          "Sid": "Stmt1618270933950",
          "Action": "s3:*",
          "Effect": "Allow",
          "Resource": "arn:aws:s3:::jpolara1-*/*"
      },
      {
          "Sid": "Stmt1617806794444",
          "Action": [
              "logs:CreateLogGroup",
              "logs:CreateLogStream",
              "logs:PutLogEvents"
          ],
          "Effect": "Allow",
          "Resource": "arn:aws:logs:*:*:*"
      }
  ]
}
  1. AWS Lambda fucntion copy_objects (Python3.8)
  2. AWS Lambda fucntion delete_objects (Python3.8)
  3. Configure Lambda Trigger for your functions

About

AWS Lambda function to replicate S3 objects

Topics

aws-lambdalambda-functionsreplications3s3-object-lambda

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.