Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Install dependencies before deploy

Lucas Luciano Picollo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2020

I'm currently trying to integrate the AWS SAM deployment process through Bitbucket pipeline but I might be misunderstanding something.

I have a Python Lambda function and a specific requirements.txt file for each environment, what I'm trying to do is to build my lambda function with its dependencies and deploy it to AWS. But after the deployment step, the dependencies are not deployed and my lambda is unable to run.

How I'm supposed to build my application? Does the aws-sam-deploy handles it or should I do it manually?

1 answer

0 votes
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 29, 2020

Hello @Lucas Luciano Picollo !

Lambda function does not do anything with installing dependecies.

The dependencies should be installed and packaged to zip file that is passed as variable to our aws-lambda-deploy pipe, for example.

If you want to use lambda stack with cloudformation, then it is more apporpiate to use aws-sam-deploy, right.

 

Look at these pipes readme and decide what is more appropriate to you:

https://bitbucket.org/atlassian/aws-sam-deploy/src/master/

https://bitbucket.org/atlassian/aws-lambda-deploy/src/master/

 

Looking forward to see your next feedback and I can help with chosen solution.

Regards, Galyna

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events