#!/bin/bash #RESTYPE=ApiGateway # Generate inventory in all regions echo "RestAPI,Scope" aws apigateway get-rest-apis | jq -cr '.items[] | [.name, .endpointConfiguration.types[0]] | @csv'