Socket
Book a DemoInstallSign in
Socket

cfn-params

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cfn-params

Create CloudFormation parameters from YAML file

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
4
100%
Maintainers
1
Weekly downloads
 
Created
Source

cfn-params

cfn-params is a node js command line tool to reformat parameters in a yaml file to the needed format for the aws cloudformation commands.

Installation

To install cfn-params open a terminal and issue: npm install -g cfn-params

Usage

To convert a parameter YAMl file type cfn-params <yaml-file> in a shell.

You can include this directly into your cli command:

$ aws cloudformation create-stack --stack-name stack --template-body file://template.yaml --parameters $(cfn-params params.yaml)

deploy option

When specifying the command line option --deploy the output format is suitable for the new aws cloudforamtion deploy command.

YAML Format

The format of the YAML-file is as follow:

Key1: Value1
Key2: Value2
SomeCommaList:
  - Item1
  - Item2

This is converted into:

ParameterKey=Key1,ParameterValue='Value1' ParameterKey=Key2,ParameterValue='Value2' ParameterKey=SomeCommaList,ParameterValue='Item1,Item2'

Contribute

Feel free to open issues, provide code improvements or updates to the documentation.

License

The script is licensed under the MIT license and provided as-is.

Changelog

1.0.0

Initial version

Keywords

aws

FAQs

Package last updated on 28 Feb 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.