aws-cudos-framework-deployment
aws-cudos-framework-deployment copied to clipboard
Use api to get default region
Today we get identity region of QS via try and error message
This can be replaced with list_namespaces procedure
list(qs.get_paginator('list_namespaces').paginate(AwsAccountId=account_id).search("Namespaces[? Name=='default'].CapacityRegion"))[0]
Out[9]: 'us-east-1'