cloud-config-toolkit-gc-storage

Cloud config toolkit: Google cloud storage integration

Usage no npm install needed!

<script type="module">
  import cloudConfigToolkitGcStorage from 'https://cdn.skypack.dev/cloud-config-toolkit-gc-storage';
</script>

README

Cloud config toolkit gc storage

Cloud config toolkit google cloud storage implements the storage interface required by Cloud config toolkit.

Installation

Install the package in the project:

npm install --save cloud-config-toolkit-gc-storage

Then use Storage constructor in cct.conf.js:

// `cct.conf.js`
const Storage = require('cloud-config-toolkit-gae-storage');

module.exports = {
  storage: new Storage({
    bucketName: 'my-bucket-for-configs',
    keyFilename: './gc.conf.json'
  }),
  // ...
};

Configuration

Storage constructor accepts a configuration object with properties:

  • bucketName - an unique bucket name where configuration files are going to be stored;
  • keyFilename - the path to key file.

For more details check Cloud config toolkit documentation.