1.1.34 • Published 5 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
5 years ago
1.1.33
5 years ago
1.1.32
5 years ago
1.1.29
5 years ago
1.1.28
5 years ago
1.1.30
5 years ago
1.1.31
5 years ago
1.1.27
5 years ago
1.1.26
5 years ago
1.1.24
5 years ago
1.1.23
5 years ago
1.1.22
5 years ago
1.1.19
5 years ago
1.1.18
5 years ago
1.1.21
5 years ago
1.1.20
5 years ago
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.1.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago