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
질문됨 3달 전137회 조회
1개 답변
2
수락된 답변

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
전문가
Greg_B
답변함 2달 전
profile picture
전문가
검토됨 2달 전
  • This has been fixed.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠