Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
copy-s3-files
Advanced tools
Readme
NPM Module to copy S3 files across AWS accounts, uses streams under the bonnet for efficient resource utilisation - no intermediate downloads & Lambda safe!
$ npm install copy-s3-files
Module requires an options object with below keys to be passed on:
{
srcS3,
destS3,
srcBucket,
destBucket,
srcKey,
destKey
}
Where:
srcS3
- The AWS S3 instance where the source file resides
destS3
- The AWS S3 instance where the file is to be copied
srcBucket
- S3 bucket name where the source file resides
destBucket
- S3 bucket name where the file is to be copied
srcKey
- Source file key
destKey
- Destination file key
Module assume Read access on the srcS3
credentials and write access on destS3
credentials.
const srcAWS = require('aws-sdk')
srcAWS.config.update({
region: SRC_REGION,
accessKeyId: SRC_ACCESS_KEY_ID,
secretAccessKey: SRC_SECRET_ACCESS_KEY
})
const destAWS = require('aws-sdk')
destAWS.config.update({
region: DEST_REGION,
accessKeyId: DEST_ACCESS_KEY_ID,
secretAccessKey: DEST_SECRET_ACCESS_KEY
})
const srcS3 = new srcAWS.S3()
const destS3 = new destAWS.S3()
const s3Copy = require('copy-s3-files')
s3Copy({
srcS3: srcS3,
destS3: destS3,
srcBucket: SRC_BUCKET_NAME,
destBucket: DEST_BUCKET_NAME,
srcKey: SRC_FILE_KEY,
destKey: DEST_FILE_KEY
}).then(function() {
console.log('Done copying file')
}).catch(function(e) {
console.log('Error while copying file', e)
})
FAQs
Copy s3 files between AWS accounts through streams
The npm package copy-s3-files receives a total of 525 weekly downloads. As such, copy-s3-files popularity was classified as not popular.
We found that copy-s3-files demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.