1.1.34 • Published 4 years ago

@iksansahib/cloudformation-parser v1.1.34

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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

KeyTypePossible valuesDescription
filesarray["cf.json", "cf.yaml"]Files OR directories required
directoriesarray["dir1", "dir2"]Files OR directories required
urlobjectRequired
url.urlstringhttps://127.0.0.1/
url.headerobject{ "content-type": "application/json"}
findobject
find.includearray["AWS::CDK::Metadata"]if include empty or undefined, it will show all resources
find.excludearray["AWS::CDK::Metadata"]exclude will override include
otherarray[]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