Skip to content

transcom/aws-data-warehouse-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This AWS Lambda function serves as a means of replicating data from a RDS database to a third-party's S3 bucket. Specifically, it retrieves changes made to a audit history table in the RDS database and exports changes to an S3 bucket in the same AWS account. Additionally, the Database schema is also written out as well.

Building a new version

You will want to edit the source files for this Lambda in the ./src directory. Once you are ready to build a new release package you can do the following:

./build.sh

The build script will ask you the version number you would like to build and create a release package (.zip) in the main directory with that version in the file name.

Tracking changes to source

After a release it is highly recommended that you commit your changes to the repo. You can revert a previous commit if you would like to build a previous version.

Initial SSM Seed

SSM Should be seeded with initial JSON data to coordinate the first export and would look like this:

{
    "data":
    {
        "lastRunTime": "1970-01-01 00:00:00.000000",
        "serialNumber": 0
    },
    "schema":
    {
        "serialNumber": 0,
        "lastMD5Hash": "None"
    }
}

About

Lambda function to dump database contents to S3 bucket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •