Create (collect) the layers necessary to use tweepy with aws lambda

Uncategorized

Lambda layer is troublesome

this timeI wanted to use tweepy's client module (mainly used in twitter api v2)

So

I have used python3.8 before and it did not include the client module, so

  • I decided to make my own

layer creation

The best practice is to create a layer in a cloud9 environment.

Create it using this site as a reference.

important point

  • Be careful about the python version
    • If it does not match the python version of lambda, it cannot be selected when linking lambda-layer.
      • Do not show…
  • Change the layer name etc. appropriately.
    • If you are brain dead, the layer name will remain pandas.

About python version

The above information is for python3.7, but if it is python3.9, you will first need to update the python version, so I will list the python version on the cloud9 side with reference to the site below.

cloud9, delete it when you're done using it.

Because it costs money. . . I thought,

It seems like it's free, so You don't have to delete it.I will continue to use it when creating layers!

did it

This way you can add it to the layer.

It's a pain, but I wonder if I can use this again...?

comment

Copied title and URL