Tools for deploying a tracking lambda that maintains a dynamodb table of s3 buckets. Useful in cases where you have many objects in an S3 bucket and traditional tools are slow.
Deploy the tracking lambda.
Variables
AWS Credentials with access to the sources and target s3 locations.
AWS Region to deploy lambdas/dynamodb in . Must match S3 bucket region.
Name of Dynamo DB table to use. Must already exist.
Precreated Role that lambda will execute as. Must have the policy generated by the Generate Policy function attached to it. Requires full ARN string.
S3 Bucket to use to deploy lambda code to.
Prefix to use in the deployment bucket.
Comma seperated list of S3 buckets to monitor
Remove the tracking lambda.
Variables
AWS Credentials with access to the sources and target s3 locations.
AWS Region to deploy lambdas/dynamodb in . Must match S3 bucket region.
Name of Dynamo DB table to use. Must already exist.
Precreated Role that lambda will execute as. Must have the policy generated by the Generate Policy function attached to it. Requires full ARN string.
S3 Bucket to use to deploy lambda code to.
Prefix to use in the deployment bucket.
Comma seperated list of S3 buckets to monitor
Create a suitable DynamoDB table with required keys.
Variables
AWS Credentials with access to the sources and target s3 locations.
AWS Region to deploy lambdas/dynamodb in . Must match S3 bucket region.
Name of Dynamo DB table to create.
Output a lambda role policy that will give the lambdas the minimal set of permissions required. Check logs for the policy after running. Create an IAM role and attach this policy to it.
Variables
Name of Dynamo DB table to use. Must already exist.
S3 Bucket to use to deploy lambda code to.
Comma seperated list of S3 buckets to monitor
Output a IAM policy with the minimum required permissions to deploy the lambdas. Check logs for the policy after running, attach it to the user you will be deploying the lambda with.
Variables
Name of Dynamo DB table to use.
Precreated Role that lambda will execute as. Must have the policy generated by the Generate Policy function attached to it.
S3 Bucket to use to deploy lambda code to.
Comma seperated list of S3 buckets to monitor