I am creating my boto3 client like so:
fsx = boto3.client('fsx',
aws_access_key_id=XXXREDACTEDXXX,
aws_secret_access_key=XXXREDACTEDXXX,
aws_session_token=XXXREDACTEDXXX,
region_name='us-east-1')
And then calling the method like so:
response = fsx.describe_file_systems()
The response I am seeing is:
{'FileSystems': [], 'ResponseMetadata': {'RequestId': 'XXXREDACTEDXXX', 'HTTPStatusCode': 200, 'HTTPHeaders': {'date': 'Thu, 03 Nov 2022 20:40:57 GMT', 'content-type': 'application/x-amz-json-1.1', 'content-length': '18', 'connection': 'keep-alive', 'x-amzn-requestid': 'XXXREDACTEDXXX'}, 'RetryAttempts': 0}}
The same query on amazon cli returns 21 results with the same access credentials i.e. I am getting the list of file systems expected. I double checked the region and account as well.
How do I troubleshoot? I am not seeing any error or exception.