Home > Software engineering >  An internal error occurred during: "Uploading function code to Lambda" javax/xml/bind/JAXB
An internal error occurred during: "Uploading function code to Lambda" javax/xml/bind/JAXB

Time:11-19

When I try to upload a Lambda to AWS I get the following error

An internal error occurred during:

"Uploading function code to Lambda" javax/xml/bind/JAXBException

Later versions of Eclipse use the Java 11 runtime, which removed this class among many others. Ok but I am sure that since now Java 17 has been released, this has been fixed, in later versions of AWS.

CodePudding user response:

Looks like you are encountering a tool issue while trying to directly upload code from Eclipse to AWS. This is not unnecessary.

You can instead use the Java runtime Lambda API within a Maven project, that works fine. That is, build the Lambda function using Maven, package the project into a JAR file, and then upload the Lambda function using the AWS Management Console.

Here is an example that builds a Lambda function that invokes several AWS services and will show you how to successfully build and deploy the AWS Lambda function (without using a tool).

This Lambda function detects PPE information (using Amazon Rekognition) in images located in an Amazon S3 bucket. See this example that is located in the Amazon Rekognition DEV Guide.

Detect PPE in images with Amazon Rekognition using an AWS SDK

  • Related