-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
114 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,10 +48,28 @@ Create an IAM role with the following policy: | |
} | ||
``` | ||
|
||
### Building the Lambda Package | ||
|
||
1. Clone this repo | ||
|
||
``` | ||
git clone [email protected]:eleven41/aws-lambda-encrypt-s3-objects.git | ||
cd aws-lambda-encrypt-s3-objects | ||
``` | ||
|
||
2. Install requirements | ||
|
||
``` | ||
npm install async | ||
npm install aws-sdk | ||
``` | ||
|
||
3. Zip up the folder using your favourite zipping utility | ||
|
||
### Lambda Function | ||
|
||
1. Create a new Lambda function. | ||
2. Upload the file index.js as the code for your Lambda function. | ||
2. Upload the ZIP package for the lambda function using `index.handler` as the handler. | ||
3. Add an event source to your Lambda function: | ||
* Event Source Type: S3 | ||
* Bucket: your source bucket | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters