export AWS_REGION=ap-northeast-1 curl https://awscli.amazonaws.com/v2/documentation/api/latest/reference/configservice/list-discovered-resources.html | grep docutils | grep -o "AWS::[^<]*" | xargs -i -r -t sh -c " aws configservice list-discovered-resources --resource-type {} | jq .resourceIdentifiers[].resourceId | xargs -n1 -r -IXXX echo resourceType={},resourceId=\\\"XXX\\\" | xargs -L100 -r -d