npm

@schibsted/configure-convox-racks

1.0.0 • Public • Published

configure-convox-racks

Simple npm package to configure your convox racks parameters.

Usage

First, you need to install this library as dependency in your project - npm install --save-dev @schibsted/configure-convox-racks

Create config file (name it as you want i.e. convox-config.js). Below is an example of the structure that this file should have:

module.exports = [
    {
    name: 'organisation/rack',
    config: {
        Autoscale: 'Yes',
        InstancePolicy: 'some policy',
        OnDemandMinCount: '1',
        InstanceType: 't3.medium',
        BuildMemory: '1024',
        BuildCpu: '256',
        VolumeSize: '70',
        BuildVolumeSize: '100',
        // etc
    }},
    // another rack
];

In this example, there is a configuration for single rack. However, you can pass as many racks here as you want, each needs to be an object in the array, that has the structure described above.

Now all you have to do is type in terminal:

  • npx @schibsted/configure-convox-racks plan -c convox-config.js to see if there are some changes
  • npx @schibsted/configure-convox-racks apply -c convox-config.js to apply those changes

That's it :)

Package Sidebar

Install

npm i @schibsted/configure-convox-racks

Weekly Downloads

44

Version

1.0.0

License

Apache 2.0

Unpacked Size

18.6 kB

Total Files

7

Last publish

Collaborators

  • katarzynapalka
  • johand199
  • rodbiffi
  • mike-dvtka
  • spp-owner
  • filipgolonka
  • schibstedbot
  • joawan
  • gustavkj
  • pakerstrand