How to CREATE lambda NOT update

Himanshu Thawait June 10, 2021

Update working fine but what about 1st time deployment.

 

COMMAND: 'update' giving error : Function not found.

 

Also while updating  FUNCTION_CONFIGURATION: 'function-configuration.json'

with hander, description etc update not working.

1 answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 10, 2021

Hi @Himanshu Thawait ,

Thank you for your question!

It would be nice if you provide us with more details, pipeline configuration and logs about this case to help you.

 

Cheers,
Oleksandr Kyrdan

Himanshu Thawait June 10, 2021

just share me sample code to create NEW Lambda NOT update existing one

Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 10, 2021

Ok, it's good to use AWS Serverless Application Model (AWS SAM) to init lambda.

Just init sam app:

sam init

also, available options:
-r, --runtime [python2.7 | ruby2.5 | ruby2.7 | java8 | python3.7 | dotnetcore2.0 | nodejs10.x | nodejs12.x | nodejs14.x | dotnetcore2.1 | dotnetcore1.0 | python3.6 | go1.x]

Himanshu Thawait June 10, 2021

So it mean creation of lambda function not support in "atlassian/aws-lambda-deploy:0.2.1" ?

Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 11, 2021

Yep, pipes automate routine repetitive tasks.

Himanshu Thawait June 11, 2021

Thanks for confirmation.

Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 14, 2021

@Himanshu Thawait to create lambda function, it is not that pipe, for examples check out readme of aws-sam-deploy pipe https://bitbucket.org/atlassian/aws-sam-deploy/src/master/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events