I am using pulumi to set up a function in lambda. ...
# aws
I am using pulumi to set up a function in lambda.
Copy code
hello_world_lambda = aws.lambda_.Function(
        '.': pulumi.FileArchive(f'./lambda/test/'),
This succesfully uploads the content of my test dir to lambda. My function in lambda needs to utilize pandas (which is not native to lambda). If I install pandas directly in my test dir, it will fail when I try to import it in my lambda function. If instead I set a venv within my test dir, it will not be uploaded for whatever reason. What is the proper way to set up extra dependencies (in this case pandas) with pulumi in lambda?
Was able to solve it by using aws lambda layers - there is a default layer with pandas package. Importing it through pulumi is very straightforward, just add an argument
Copy code