NodeCloud is a standard library to get a single API among common cloud service providers (Ex. AWS, GCP, Azure.. ). This will make building products among multiple cloud services and its services easier for the developer.
Compute allows you to manage cloud and virtual servers
Object Storage allows you to manage cloud object storage
Container allows users to install and deploy containers onto container based virtualization platforms
DNS allows you to manage DNS as A Service
Backup allows you to manage Backup as A Service
- EC2 (Compute)
- S3 Storage (Object Storage)
- Amazon Elastic Container Service (Container)
- Route53 (DNS)
- Amazon EBS Backup Driver (Backup)
WIP
const nodeCloud = require("nodecloud");
// AWS
const ncAWS = nodeCloud.getProvider("AWS");
const options = {
apiVersion: "2016-11-15"
};
const params = {
ImageId: "ami-10fd7020", // amzn-ami-2011.09.1.x86_64-ebs
InstanceType: "t1.micro",
MinCount: 1,
MaxCount: 1
};
const instanceParams = {
Key: "Name",
Value: "Node Cloud demo"
};
const ec2 = ncAWS.compute(options);
ec2
.createInstance(params, instanceParams)
.then(res => {
console.log(`All done ! ${res}`);
})
.catch(err => {
console.log(`Oops something happened ${err}`);
});
$ git clone https://github.com/scorelab/nodecloud
$ cd nodecloud
$ yarn install
$ yarn test