Skip to content

A Lambda function being called by a CodePipeline to write packages into an S3 bucket.

Notifications You must be signed in to change notification settings

infopark/lambda-codepipeline-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-codepipeline-s3

This AWS Lambda function is triggered by AWS CodePipeline. It copies the artifacts content to S3. It also gives the copied S3 objects the bucket-owner-full-control ACL. This is useful for cross account S3 access.

Configure the "Invoke / Lambda Function" action with UserParameters such as

{"bucket": "my-bucket", "key_prefix": "my/key/prefix"}

If you want to also send an SNS notification about the successful copy operation, also specify SNS config:

{"bucket": "my-bucket", "key_prefix": "my/key/prefix", "notification_subject": "S3 copy completed", "notification_sns_topic_arn": "my-topic-arn"}

Testing

No tests yet

Building

rake build

This command compiles a Linux binary ./handler.

Deploying

rake deploy

This command deploys the code to the already existing Lambda function codepipeline-s3-packages.

About

A Lambda function being called by a CodePipeline to write packages into an S3 bucket.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published