1.1.34 • Published 4 years ago
@iksansahib/cloudformation-parser v1.1.34
How to Install
npm install -g @iksansahib/cloudformation-parser
How to use
CLI
cloudformation-parser config.json
If file not specified, it will get .cfparser.config.json from $HOME directory
Generate sample config file
cloudformation-parser -g
As package in code
const cfParser = require('@iksansahib/cloudformation-parser');
cfParser.proccessFromConfigFile('./config.json');
Config Details
Key | Type | Possible values | Description |
---|---|---|---|
files | array | ["cf.json", "cf.yaml"] | Files OR directories required |
directories | array | ["dir1", "dir2"] | Files OR directories required |
url | object | Required | |
url.url | string | https://127.0.0.1/ | |
url.header | object | { "content-type": "application/json"} | |
find | object | ||
find.include | array | ["AWS::CDK::Metadata"] | if include empty or undefined, it will show all resources |
find.exclude | array | ["AWS::CDK::Metadata"] | exclude will override include |
other | array | [] | additional information that will send to API |
Example:
{
"files": ["cf.json", "cf.yaml"],
"directories": ["dir"],
"url": {
"url": "https://127.0.0.1",
"header": {
"x-api-key": "xasadcadcaxdsxacdc"
}
},
"find": {
"include": ["AWS::CDK::Metadata"],
"exclude": []
},
"other": [
"key"
]
}
1.1.34
4 years ago
1.1.33
4 years ago
1.1.32
4 years ago
1.1.29
4 years ago
1.1.28
4 years ago
1.1.30
4 years ago
1.1.31
4 years ago
1.1.27
4 years ago
1.1.26
4 years ago
1.1.24
4 years ago
1.1.23
4 years ago
1.1.22
4 years ago
1.1.19
4 years ago
1.1.18
4 years ago
1.1.21
4 years ago
1.1.20
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.1.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago