Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unknown service: 'glue' #1242

Closed
krishna209 opened this issue Aug 24, 2017 · 2 comments
Closed

"Unknown service: 'glue' #1242

krishna209 opened this issue Aug 24, 2017 · 2 comments
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made. question

Comments

@krishna209
Copy link

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
Copy link
Contributor

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 .

@kyleknap kyleknap added closing-soon This issue will automatically close in 4 days unless further comments are made. question labels Aug 25, 2017
@jamesls
Copy link
Member

jamesls commented Sep 11, 2017

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made. question
Projects
None yet
Development

No branches or pull requests

3 participants