The region option has been changed inside code or something. When I checked the code the region option they were expecting was in the format AP_SOUTH_1, AP_SOUTHEAST_1 instead of ap-south-1, ap-southeast-1. And inside the doc its given as latter but in code they are expecting former.