A collection of scripts to work with postman
- Install nodejs
- Configure AWS environment variables with the IAM user/role to your AWS account. See guidance for working with multiple profiles.
- Install packages
npm install
- These scripts use yargs to process command line arguments.
Exports a swagger document of the API with postman extensions for a given invoke url of an API gateway. Note: Current implementation supports export for only one URL at a time.
Example:
node export_postman_from_aws.js --INVOKE_URL=https://abc123xqz.execute-api.us-east-1.amazonaws.com/dev
Exports each of the parameters from AWS parameter store and stores them as JSON files in ./outputs directory
Note: This script does not do any data transformations, you need to make sure the parameter value in parameter store is in the format supported by postman/newman.
See this page for examples of JSON structures for different variables in postman.
Examples:
node export_parameter_from_aws.js --PARAMETER_NAMES="param1" "param2"
node export_parameter_from_aws.js --PARAMETER_NAMES="param1" --PARAMETER_NAMES ="param2"