I am not able to connect to to any region using boto3 i have tried everything using boto3.session.Session, connection = ec2.connect_to_region
connection=ec2.connect_to_region('region_name',aws_access_key_id='',aws_secret_access_key=''
I am getting the below error:
File "/usr/local/lib/python2.7/site-packages/botocore/regions.py", line 135, in _endpoint_for_partition raise NoRegionError() botocore.exceptions.NoRegionError: You must specify a region.