AWS lambda: No module named 'cfnresponse'

后端 未结 2 1730
时光说笑
时光说笑 2021-01-18 03:27

I have deployed an AWS lambda which contains:

import json
import boto3
import cfnresponse
import urllib.request
from botocore.exceptions import ClientError

         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-18 04:18

    Cfnresponse is just available in lambda by default with python 2.7. Probably you are using 3.6.

提交回复
热议问题