Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryoichi-obara/s3-bucket-copy


https://github.com/ryoichi-obara/s3-bucket-copy

aws ecmascript javascript node node-js nodejs s3 s3-bucket

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# s3-bucket-copy

## Environment

* FROM_BUCKET
* TO_BUCKET

## Implementation

Implement your conditional code at ``src/index.js``.

```js
const isCopyTarget = (key) => {
if (key) {
return true;
}
return false;
};
```

## Release

```sh
npm run make
aws s3 cp .\build\Release\s3-bucket-copy.zip s3://${YOUR_S3_BUCKET_HERE}/
aws lambda update-function-code --function-name s3-bucket-copy --s3-bucket ${YOUR_S3_BUCKET_HERE} --s3-key s3-bucket-copy.zip --publish
```