how to dynamically get aws region name boto3

40

my_session = boto3.session.Session()
my_region = my_session.region_name
my_session = boto3.session.Session()
my_region = my_session.region_name
my_session = boto3.session.Session()
my_region = my_session.region_name
my_session = boto3.session.Session()
my_region = my_session.region_name
my_session = boto3.session.Session()
my_region = my_session.region_name

Comments

Submit
0 Comments