in scripts/replicatekey.py [0:0]
def validateregion(region):
# validates passed region name.
try:
regionfound = False
for i in regionslist['Regions']:
if (i['RegionName'] == region):
regionfound = True
break
return regionfound
except ClientError as e:
print("[ERROR]",e)
except Exception as e:
print("[ERROR]", e)