You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 .
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')"
]
The text was updated successfully, but these errors were encountered: