IOT Sitewise alarm creation errors on Python version (3.7) and fails to complete lambda creation.

0

We ran into this issue and it looks like the AWS code needs to be updated. In sitewise we are trying to make a simple alarm. (User was following this article: https://aws.amazon.com/blogs/iot/real-time-monitoring-of-industrial-equipment-using-alarms-in-aws-iot-sitewise/ )

The CONSOLE automatically creates the Roles and Lambda function. However you get the following error and it appears the Lambda function fails to fully complete its creation:

InvalidParameterValueException

The runtime parameter of Python3.7 is no longer supported for creating or updating the AWS Lambda functions. We recommend you use the new runtime (python3.12) while creating or updating the function.

The user never chooses the runtime, its IAC from AWS. If you go into the partially created lambda you can see the runtime is actually blank. You can change it to python3.12, but the rest of the lambda (Trigger, Destination, and possibly log groups) are never created because of the error.

Sitewise team, can you please update your code to use python3.12 ?

  • Hi. I don't see that blog linking to any code or CloudFormation template. What code are you using?

  • Greg_B you misunderstand. The IAC is behind the AWS console. We are merely clicking the create alarm button. The code BEHIND the scenes of the console is using the outdated python and failing to create the lambda for the alarm. The user is simply using the Sitewise console.

  • Indeed, I did. Apologies.

chris
asked 2 months ago124 views
1 Answer
2
Accepted Answer

Hi. Thanks for reporting this, and apologies for the inconvenience. I can reproduce the issue. I've raised it internally.

UPDATE: A fix has been deployed globally.

profile pictureAWS
EXPERT
Greg_B
answered 2 months ago
profile picture
EXPERT
reviewed a month ago
  • This has been fixed.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions