Cannot find search-data-set in aws cli with the versions of aws cli

Using virtual env:

$ aws --version
aws-cli/1.32.82 Python/3.10.4 Windows/10 exec-env/EC2 botocore/1.34.82

Not using virtual env:
$ aws --version
aws-cli/2.13.29 Python/3.11.6 Windows/10 exec-env/EC2 exe/AMD64 prompt/off

In both of these setup/env, the command:
$ aws quicksight search-data-sets

will return this error:
aws.exe: error: argument operation: Invalid choice, valid choices are:…

Not sure what happen coz it was working and did some update of the botocore/boto library and the awscli is getting error in the search-data-sets

Hello @alltej !

Is this the command you are looking for?

https://docs.aws.amazon.com/cli/latest/reference/quicksight/search-data-sets.html?highlight=search%20data%20set

Hi @alltej - Thanks for the question. Can you please try the below command

Change the account id and data set name

aws quicksight search-data-sets --aws-account-id <<account_id>> --filters "Operator"="StringLike","Name"="DATASET_NAME","Value"="<<data set name>>"

The above command is working fine for me.

Regards - Sanjeeb

1 Like

Hello @alltej !

I think what @Sanjeeb2022 looks good as well, were you able to give it a try?