- Newest
- Most votes
- Most comments
The error you're experiencing is likely due to an unexpected runtime version update in your Lambda function. AWS Lambda automatically updates runtimes to the most recent and secure versions, which can sometimes lead to compatibility issues with existing functions.
To resolve this issue, you can try the following steps:
-
Check if the error coincides with an automatic runtime update. You can do this by reviewing your function's logs or checking the runtime version history.
-
Identify the last runtime version that your function successfully used. This information should be available in your function's configuration history.
-
Use Lambda runtime management controls to manually update the runtime version used by your function. You can do this through the Lambda console or AWS CLI.
-
If the issue persists, you may need to review and update your function code to ensure compatibility with the new runtime version. Pay special attention to the dependencies and layers used in your code, as they might need updating as well.
-
If you need to revert to a previous working version, you can use the function ARN to roll back.
Remember, it's a best practice to keep your Lambda functions up-to-date with the latest runtime versions for security and performance reasons. However, you should also maintain a process for testing your functions with new runtime versions before they're automatically applied in production.
If you continue to face issues after trying these steps, you may need to reach out to AWS Support for further assistance, especially if you're using a runtime that's nearing or past its deprecation date.
Sources
Troubleshoot Lambda function runtime version errors | AWS re:Post
Upgrade Lambda function runtime to latest version | AWS re:Post
Managing AWS Lambda runtime upgrades | AWS Compute Blog
Hello.
Is it possible for you to share the Lambda code where the error occurs?
Judging from the error message, it appears that a value that is not an object is being used for "Object.defineProperty".
I think it's difficult to troubleshoot without having the code that is causing the problem.
S3 version
"@aws-sdk/client-s3": "^3.723.0", "@aws-sdk/s3-request-presigner": "^3.723.0",
try{ const command = new PutObjectCommand(s3Params); const url = await getSignedUrl(s3, command, { expiresIn: 3600 }); // 3600 seconds = 1 hour return url; } catch (error) { throw new Error(
Error: ${error.message}); }
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 4 months ago

Not working