Socket
Socket
Sign inDemoInstall

@sp-tools/kloud-stack

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sp-tools/kloud-stack

Deploy resources to AWS


Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

☁️ kloud-stack

Provide a declarative way to deploy multiple CloudFormation stacks with ease.

Installation

# Via yarn
$ yarn add @sp-tools/kloud-stack

# Via npm
$ npm install @sp-tools/kloud-stack

Usage

  1. Ensure that the environment variable AWS_DEFAULT_REGION is set
  2. At the root of your application add configuration file called kloud-stack.yml.
  3. kloud-stack run -s <stage>

CLI options

Following is the usage of kloud-stack CLI.

Usage: kloud-stack [command] <options>

Options:
  --stage,    -s Specify stage to run on. (required)
  --file,     -f Path to kloud-stack configuration file (default: "kloud-stack.yml")
  --dry       -d Execute a dry-run
  --version,  -v Output the version number
  --help,     -h Show help

Commands:
  run [options]          Deploy all cloudformation stacks in config file

kloud-stack.yml

Following is the configuration file will all possible options:

Example - SSM
provider:
  name: ssm

stacks:
  - templateFile: './sample-stack.yml'
    stackName: 'sample-stack-name'
    parameters:
      Stage: ${opt:stage}
      Foo: ${ssm:/foo-service/config/THEFOO}
  - templateFile: './sample-stack-two.yml'
    stackName: 'second-stack'
    parameters:
      Stage: ${opt:stage}
      Bar: bar-queue-${opt:stage}
      Blah: ${cf:blah-service/THEBLAH}
Example - DynamoDB
provider: # If used in conjunction with parameter store. Will support ${ddb:} resolution
  name: ddb (optional)
  tableName: tableName

stacks:
  - templateFile: './cloudformation/global/acm.yml' # path to cloudformation template
    stackName: blah-acm-${opt:stage}
    parameters:
      Stage: ${opt:stage}

  - templateFile: './cloudformation/global/internal-domain.yml'
    stackName: blah-api-gateway-${opt:stage}
    parameters:
      Stage: ${opt:stage}

Variables

Options
  • ${opt:stage}
AWS
  • ${aws:accountId}
  • ${aws:region}
Providers
SSM
provider:
  name: ssm

To reference ssm parameters, use: ${ssm:/foo-service/config/THEFOO}

DynamoDB
provider:
  name: ddb
  tableName: ThisTableHasConfigs

To reference ddb parameters, use: ${ddb:/theValue}

FAQs

Package last updated on 15 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc