
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
amplify-category-data
Advanced tools
[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![License][license-shield]][license-url]
WARNING: This plugin is in alpha, and may undergo backwards incompatible changes.
The easiest way to import CSV files into DynamoDB.
View Demo
·
Report Bug
·
Request Feature
Amplify is great at replicating environments- but a database without data is a lonely place.
This project aims to automate the process of seeding, importing, and managing data for Amplify projects.
The first use case targets importing CSV files into DynamoDB.
I evaluated the different approaches, determined which one was the most cost-effective and performant, and distilled it into a simple plugin for you to use in your Amplify project.
To add this plugin to your Amplify project, follow these simple steps.
npm install -g amplify-category-data
amplify plugin add amplify-category-data
Add the data import resources to your amplify backend directory with:
amplify data add
amplify push
To import data into DynamoDB you first need csv files to import. To get a file, export one or more DynamoDB tables to csv files from the AWS console. (Note: This method only exports up to 100 records)
Once exported, place them into a single directory on your file system.
Now simply use the AWS S3 console or aws-cli
tool, and upload csv files to your newly created S3 bucket.
The name of each csv file will determine which DynamoDB table it is uploaded to.
For example...
Categories-gkcm6todfzh5tlpgntm3lyrrgu-dev.csv
uploads to DynamoDB table: Categories-gkcm6todfzh5tlpgntm3lyrrgu-dev
(Optional) If you exported CSV files from the AWS console, you can use amplify data preprocess
to quickly format your csv file headers and filenames.
Done! Your DynamoDB tables now are seeded with data. 🎉
Coming soon...
Coming soon...
The short term goal is to reduce the amount of manual steps required for a CSV import workflow.
See the Github Project Roadmap for a list of proposed improvements.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the ISC License. See LICENSE
for more information.
Twitter - @lordrozar
FAQs
[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![License][license-shield]][license-url]
The npm package amplify-category-data receives a total of 15 weekly downloads. As such, amplify-category-data popularity was classified as not popular.
We found that amplify-category-data 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.