aws-packmule
v0.0.1
Published
Simple wrapper for creating elastic file-systems on AWS
Downloads
2
Readme
We created this project since one of our ci build processes requires +80GB of storage. Popular docker-based CI tools (i.e. travis, shippable) have limited space, hence we had to get creative. Packmule creates a file storage on AWS that can then be mounted remotely on the CI instance via NFS.
How to use
Install
npm install aws-packmule --save
Initialize
const PackMule = require('aws-packmule');
//aws configuration
const options = {
region: "us-east-1"
};
var packmule = new PackMule(options);
To create a file-system
var tags = [
{
Key: "Corporation",
Value: "Black Mesa"
}
];
//the first parameter should be a unique identifier, in AWS docs this is referred to as a CreationToken
packmule.createFS('abcdefghijklmnopqrstuvwxyz', tags, function(err, data) {
if (err) {
console.log(err, err.stack);
return;
}
console.log(data);
});
if you don't want any custom tags, pass in []
To delete a file-system
packmule.destroyFS('abcdefghijklmnopqrstuvwxyz', function(err, data) {
if (err) {
console.log(err, err.stack);
return;
}
console.log("I'm Pickle Riiiiick");
});