Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ryoichi-obara/s3-bucket-copy
- Owner: ryoichi-obara
- License: mit
- Created: 2018-07-13T00:44:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T06:55:25.000Z (about 2 years ago)
- Last Synced: 2024-11-25T11:38:30.301Z (2 months ago)
- Topics: aws, ecmascript, javascript, node, node-js, nodejs, s3, s3-bucket
- Language: JavaScript
- Size: 441 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```