It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

aws sam deploy Edited

Hi dear community,

We're currently facing a problem with deploying lambda function's artefacts together with 3rd party libraries.

Could you please clarify, how to resolve and deploy properly these dependencies using aws-sam-deploy pipe?

 

* we use the last version of pipe.

variables in BBPL file:

variables:
AWS_ACCESS_KEY_ID$AWS_ACCESS_KEY_ID_STAGE
 AWS_SECRET_ACCESS_KEY$AWS_SECRET_ACCESS_KEY_STAGE
 AWS_DEFAULT_REGION'eu-central-1'    
 
S3_BUCKET'templates-stage' 
  
STACK_NAME'stackname'                
SAM_TEMPLATE'template.yaml'            
  
CAPABILITIES: ['CAPABILITY_IAM''CAPABILITY_AUTO_EXPAND']
D
EBUG'true'

To reproduce: 

add requirements.txt file( with e.g. psycopg2-binary) to your lambda source code. Deploy. In S3 bucket you'll see that the file uploaded to S3 bucket is too small and Lambda is not working.

 

Best Regards,

Alexey

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

375 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you