boto / botocore

The low-level, core functionality of boto3 and the AWS CLI.
Apache License 2.0
1.47k stars 1.07k forks source link

No endpoints for "wellarchitected" client #2290

Closed benfortuna closed 3 years ago

benfortuna commented 3 years ago

Describe the bug Trying to instantiate a wellarchitected client results in an UnknownServiceError.

Steps to reproduce

import boto3

wat = boto3.client('wellarchitected')

Expected behavior A client connected to regional endpoint(s)

Debug logs


[ERROR] UnknownServiceError: Unknown service: 'wellarchitected'. Valid service names are: accessanalyzer, acm, acm-pca, alexaforbusiness, amplify, amplifybackend, apigateway, apigatewaymanagementapi, apigatewayv2, appconfig, appflow, appintegrations, application-autoscaling, application-insights, appmesh, appstream, appsync, athena, 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, elastic-inference, elasticache, elasticbeanstalk, elastictranscoder, elb, elbv2, emr, es, events, firehose, fms, forecast, forecastquery, frauddetector, fsx, gamelift, glacier, globalaccelerator, glue, greengrass, groundstation, guardduty, health, honeycode, iam, identitystore, imagebuilder, importexport, inspector, iot, iot-data, iot-jobs-data, iot1click-devices, iot1click-projects, iotanalytics, iotevents, iotevents-data, iotsecuretunneling, iotsitewise, iotthingsgraph, ivs, kafka, kendra, kinesis, kinesis-video-archived-media, kinesis-video-media, kinesis-video-signaling, kinesisanalytics, kinesisanalyticsv2, kinesisvideo, kms, lakeformation, lambda, lex-models, lex-runtime, license-manager, lightsail, logs, lookoutvision, machinelearning, macie, macie2, managedblockchain, marketplace-catalog, marketplace-entitlement, marketplacecommerceanalytics, mediaconnect, mediaconvert, medialive, mediapackage, mediapackage-vod, mediastore, mediastore-data, mediatailor, meteringmarketplace, mgh, migrationhub-config, mobile, mq, mturk, mwaa, neptune, network-firewall, networkmanager, opsworks, opsworkscm, organizations, outposts, personalize, personalize-events, personalize-runtime, pi, pinpoint, pinpoint-email, pinpoint-sms-voice, polly, pricing, qldb, qldb-session, quicksight, ram, rds, rds-data, redshift, redshift-data, rekognition, resource-groups, resourcegroupstaggingapi, robomaker, route53, route53domains, route53resolver, s3, s3control, s3outposts, sagemaker, sagemaker-a2i-runtime, sagemaker-featurestore-runtime, sagemaker-runtime, savingsplans, schemas, sdb, secretsmanager, securityhub, serverlessrepo, service-quotas, servicecatalog, servicecatalog-appregistry, servicediscovery, ses, sesv2, shield, signer, sms, sms-voice, snowball, sns, sqs, ssm, sso, sso-admin, sso-oidc, stepfunctions, storagegateway, sts, support, swf, synthetics, textract, timestream-query, timestream-write, transcribe, transfer, translate, waf, waf-regional, wafv2, workdocs, worklink, workmail, wo    raise UnknownServiceError(loaders.py", line 376, in load_service_model,```
benfortuna commented 3 years ago

I notice the endpoints.json file doesn't include a reference to wellarchitected. Not sure if related.

https://github.com/boto/botocore/blob/develop/botocore/data/endpoints.json

kdaily commented 3 years ago

Hi @benfortuna, you'll need boto3>=11.16.38 (botocore>=.19.38) to use this service. If you are running an older version, you'll need to upgrade. For your future reference, you can see when this was added in the API model, not the endpoint file:

https://github.com/boto/botocore/tree/develop/botocore/data/wellarchitected/2020-03-31

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or 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.

benfortuna commented 3 years ago

@kdaily I have tried with latest boto3/botocore. If I have requirements.txt as

boto3>=1.16.38
botocore>=1.19.38

I get the same error as described above. Pls dont close ticket prematurely.

benfortuna commented 3 years ago

FYI resolved issue. Looks like an older Python 3.6 install was being executed, which doesn't appear to support wellarchitected client.