Converts a cloudformation function definition into a JSON file that you can import using postman
npm install clf-lambda-definition-2-postman-collectionpackage.json``> npm install clf-lambda-definition-2-postman-collection`Getting Started:
To use the package you can run the following command.`
npx clf-lambda-definition-2-postman-collection functions.yml https://httpbin.org/api test-api headers.json
`Variables (In order):
$3
##### Path to the cloudformation function definition as a YML file.
$3
##### The endpoint that you want to test using. Note that you can specify a variable using double curly braces. For example.
##### "{{ENDPOINT}}/api"
$3
##### The name of your postman collection.
$3
##### Path to a JSON file specifying an array of headers you want for the requests. For example.`
[
{
"key": "Authorization",
"value": "Bearer {{TOKEN}}",
"type": "text"
},
{
"key": "type",
"value": "{{TYPE}}",
"type": "text"
}
]
``