Closed ricomasgu closed 1 year ago
I created the following script to try to get the info using boto3 instead. Now thinking if I am using the same API endpoint that aws cli uses, does not make a lot of sense.
import boto3
import json
import time
import sys
from awsglue.utils import getResolvedOptions
args = getResolvedOptions(sys.argv,
['REGION',
'ACCOUNT_ID',
'ACCESS_KEY',
'SECRET_KEY'])
REGION=args["REGION"]
ACCOUNT_ID=args["ACCOUNT_ID"]
ACCESS_KEY=args["ACCESS_KEY"]
SECRET_KEY=args["SECRET_KEY"]
session = boto3.Session(
aws_access_key_id=ACCESS_KEY,
aws_secret_access_key=SECRET_KEY,
region_name=REGION
)
quicksight = session.client('quicksight')
response = quicksight.list_data_sources(
AwsAccountId=ACCOUNT_ID,
)
print(response)
Got the same error.
One colleague of mine found out this happens when region is eu-central-1
, with eu-west-1
the command works. This does not solve my issue since I have everything in eu-central-1 region. Will open in parallel a case on AWS quicksight.
Now it works, I asked support but they say they did nothing.
Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
I have this error when executing:
aws quicksight list-data-sources --aws-account-id AWS_ACCOUNT_ID
Expected Behavior
To list the data sources I have in quicksight.
Current Behavior
Detailed Error:
Reproduction Steps
You have to be signed in with aws cli and at least the versions aws-cli/2.12.2 Python/3.11.4. Then just execute the command
aws quicksight list-data-sources --aws-account-id AWS_ACCOUNT_ID
Possible Solution
No response
Additional Information/Context
No response
CLI version used
2.12.2
Environment details (OS name and version, etc.)
Mac OS Monterrey 12.6 - Darwin/21.6.0 exe/x86_64