module cfnresponse doesn't exist for Python 3.11

0

Hi,

When I use "import cfnresponse" in a Python 3.11 Lambda function, this gives the error: [ERROR] Runtime.ImportModuleError: Unable to import module 'index': No module named 'cfnresponse'

It looks like the same issue that was present in Python 3.9 (see here: https://repost.aws/questions/QUtqrQ6_3zSxmKo3QtFW_4Aw/cfnresponse-package-is-missing-in-new-python-3-9-runtime ). AWS fixed this issue for Python 3.9, is it possible to fix it for Python 3.11 as well? Or should we rewrite the code to use aws package to add the cfnresponse package to the Lambda function?

Thx for your answer,

Frederique

  • Did it ever end up working for you? @Frederique

質問済み 9ヶ月前684ビュー
1回答
2

Thank you Frederique for flagging. We are investigating and will get back to you.

AWS
回答済み 9ヶ月前
  • Hey @Jonathan-AWS, any updates on this?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ