Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taimos/cfn-params
CloudFormation Parameter utility for the CLI
https://github.com/taimos/cfn-params
Last synced: 8 days ago
JSON representation
CloudFormation Parameter utility for the CLI
- Host: GitHub
- URL: https://github.com/taimos/cfn-params
- Owner: taimos
- Created: 2017-02-28T13:58:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T09:14:46.000Z (over 2 years ago)
- Last Synced: 2024-10-12T18:50:38.653Z (about 1 month ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 ` 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:
```yaml
Key1: Value1
Key2: Value2
SomeCommaList:
- Item1
- Item2
```This is converted into:
```text
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.1.0 (master)
* add error handling for missing filename argument### 1.0.0
Initial version