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
feita há 3 meses137 visualizações
1 Resposta
2
Resposta aceita

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
ESPECIALISTA
Greg_B
respondido há 2 meses
profile picture
ESPECIALISTA
avaliado há 2 meses
  • This has been fixed.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas