aws-cudos-framework-deployment icon indicating copy to clipboard operation
aws-cudos-framework-deployment copied to clipboard

Use api to get default region

Open iakov-aws opened this issue 5 months ago • 1 comments

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'

iakov-aws avatar Sep 20 '24 11:09 iakov-aws