Closed ekamanelly closed 1 year ago
Hi @ekamanelly thanks for reaching out. The AWS Resource Explorer was just announced a few months ago, so you just need to update your version of boto3. The latest version is 1.26.81 per the CHANGELOG. I just tested on the latest version and confirmed that the service commands are working.
Describe the bug
The low level client, "resource-explorer-2" errors out as an unknown service. I'm trying to get list of view created through the console but the initial setup won't even run.
Expected Behavior
It shouldn't throw any error, at least not for client setup
client = boto3.client("resource-explorer-2)
Current Behavior
File "/home/ekama/Desktop/devops/aws_exploreer/boto3_project/boto3_env/lib/python2.7/site-packages/boto3/init.py", line 93, in client return _get_default_session().client(*args, *kwargs) File "/home/ekama/Desktop/devops/aws_exploreer/boto3_project/boto3_env/lib/python2.7/site-packages/boto3/session.py", line 263, in client aws_session_token=aws_session_token, config=config) File "/home/ekama/Desktop/devops/aws_exploreer/boto3_project/boto3_env/lib/python2.7/site-packages/botocore/session.py", line 851, in create_client client_config=config, api_version=api_version) File "/home/ekama/Desktop/devops/aws_exploreer/boto3_project/boto3_env/lib/python2.7/site-packages/botocore/client.py", line 81, in create_client service_model = self._load_service_model(service_name, api_version) File "/home/ekama/Desktop/devops/aws_exploreer/boto3_project/boto3_env/lib/python2.7/site-packages/botocore/client.py", line 123, in _load_service_model api_version=api_version) File "/home/ekama/Desktop/devops/aws_exploreer/boto3_project/boto3_env/lib/python2.7/site-packages/botocore/loaders.py", line 132, in _wrapper data = func(self, args, kwargs) File "/home/ekama/Desktop/devops/aws_exploreer/boto3_project/boto3_env/lib/python2.7/site-packages/botocore/loaders.py", line 378, in load_service_model known_service_names=', '.join(sorted(known_services))) botocore.exceptions.UnknownServiceError: Unknown service: 'resource-explorer-2'**. Valid service names are: accessanalyzer, acm, acm-pca, alexaforbusiness, amp, amplify, amplifybackend, apigateway, apigatewaymanagementapi, apigatewayv2, appconfig, appflow, appintegrations, application-autoscaling, application-insights, applicationcostprofiler, appmesh, apprunner, appstream, appsync, athena, auditmanager, autoscaling, autoscaling-plans, backup, batch, braket, budgets, ce, chime, cloud9, clouddirectory, cloudformation, cloudfront, cloudhsm, cloudhsmv2, cloudsearch, cloudsearchdomain, cloudtrail, cloudwatch, codeartifact, codebuild, codecommit, codedeploy, codeguru-reviewer, codeguruprofiler, codepipeline, codestar, codestar-connections, codestar-notifications, cognito-identity, cognito-idp, cognito-sync, comprehend, comprehendmedical, compute-optimizer, config, connect, connect-contact-lens, connectparticipant, cur, customer-profiles, databrew, dataexchange, datapipeline, datasync, dax, detective, devicefarm, devops-guru, directconnect, discovery, dlm, dms, docdb, ds, dynamodb, dynamodbstreams, ebs, ec2, ec2-instance-connect, ecr, ecr-public, ecs, efs, eks,
Reproduction Steps
// pip freeze
boto3==1.17.112 botocore==1.20.112 futures==3.4.0 jmespath==0.10.0 python-dateutil==2.8.2 s3transfer==0.4.2 six==1.16.0 urllib3==1.26.14
// main.py
import boto3
client = boto3.client('resource-explorer-2')
Possible Solution
No response
Additional Information/Context
No response
SDK version used
boto3==1.17.112
Environment details (OS name and version, etc.)
ubuntu 20.04