This is my code,
session = Session(access_key_id='',secret_access_key='',region_name='ap-southeast-1')
conn = session.client('support')
checks = conn.describe_trusted_advisor_checks(language='en')
This gives me following error,
Could not connect to the endpoint URL: "https://support.ap-southeast-1.amazonaws.com/"
As mentioned here, there is only one end point for AWS support,
http://docs.aws.amazon.com/general/latest/gr/rande.html#awssupport_region
So I changed region_name to us-east-1
Now code looks,
session = Session(access_key_id='',secret_access_key='',region_name='us-east-1')
conn = session.client('support')
checks = conn.describe_trusted_advisor_checks(language='en')
But Now i face this error,
botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the DescribeTrustedAdvisorChecks operation: User: abc is not authorized to perform: support:
I have instances only in Singapore regions, why this error is occur, can i use support
, even i have instances only in Singapore region
and endpoint is us-east-1