1.1.34 • Published 5 years ago

@iksansahib/cloudformation-parser v1.1.34

Weekly downloads
-
License
ISC
Repository
-
Last release
5 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

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