@aws-toolkit/aws-cli

1.0.1 • Public • Published

AWS Node.js Toolkit - AWS CLI

A tiny wrap around the AWS CLI, which runs any command as a promise.

Easily integrates with node task runners (e.g.: npm and gulp) due to its promise interface.

Prerequisites

You must have the AWS CLI installed and have its executable added to your path

Usage

You can execute all commands available from your AWS CLI version

import { cli } from '@aws-toolkit/aws-cli'
const { cli } = require('@aws-toolkit/aws-cli');

const args = [
    'deploy',
    '--template-file', '<value>',
    '--stack-name', '<value>'
];

async function example() {
    await cli('cloudformation', args);
}

/@aws-toolkit/aws-cli/

    Package Sidebar

    Install

    npm i @aws-toolkit/aws-cli

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.58 kB

    Total Files

    4

    Last publish

    Collaborators

    • olivier.va