boto / boto3

AWS SDK for Python
https://aws.amazon.com/sdk-for-python/
Apache License 2.0
9.07k stars 1.87k forks source link

"Unknown service: 'glue' #1242

Closed krishna209 closed 7 years ago

krishna209 commented 7 years ago

import boto3

def lambda_handler(event, context): client = boto3.client('glue') response = client.get_table( CatalogID = '123456789098', DatabaseName = 'samepldb', Name = 'sampletable' ) print(response)

When I run the above code to test glue boto3 functionality using lambda. it throws the following error.

{ "errorMessage": "Unknown service: 'glue'. Valid service names are: acm, apigateway, application-autoscaling, appstream, athena, autoscaling, batch, budgets, clouddirectory, cloudformation, cloudfront, cloudhsm, cloudsearch, cloudsearchdomain, cloudtrail, cloudwatch, codebuild, codecommit, codedeploy, codepipeline, codestar, cognito-identity, cognito-idp, cognito-sync, config, cur, datapipeline, dax, devicefarm, directconnect, discovery, dms, ds, dynamodb, dynamodbstreams, ec2, ecr, ecs, efs, elasticache, elasticbeanstalk, elastictranscoder, elb, elbv2, emr, es, events, firehose, gamelift, glacier, greengrass, health, iam, importexport, inspector, iot, iot-data, kinesis, kinesisanalytics, kms, lambda, lex-models, lex-runtime, lightsail, logs, machinelearning, marketplace-entitlement, marketplacecommerceanalytics, meteringmarketplace, mturk, opsworks, opsworkscm, organizations, pinpoint, polly, rds, redshift, rekognition, resourcegroupstaggingapi, route53, route53domains, s3, sdb, servicecatalog, ses, shield, sms, snowball, sns, sqs, ssm, stepfunctions, storagegateway, sts, support, swf, waf, waf-regional, workdocs, workspaces, xray", "errorType": "UnknownServiceError", "stackTrace": [ [ "/var/task/lambda_function.py", 4, "lambda_handler", "client = boto3.client('glue')" ]

kyleknap commented 7 years ago

It sounds like the version of boto3 is out of date in your Lambda function. If you are relying on the version of Boto3 that lives in AWS Lambda, that version may be out of date so you may have to include a version of boto3 that has support for glue in your deployment package .

jamesls commented 7 years ago

Closing due to inactivity.