Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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-LAMBDA-DEPLOY command update is not waiting for LastUpdateStatus Successful


The aws-lambda-deplopy pipe version 1.3.0 is not waiting on the LastUpdateStatus to be successful before proceeding.

In the case where we issue an update command with a function configuration, the code calls update_function_configuration first before calling update_function_code.  To respect Lambda function states, the code uses a boto3 waiter. Here is where I believe the issue is, the call to get_waiter is using the parameter function_active.  I believe the what it needs to do is call the get_waiter function with the parameter function_updated.  This will make the pipe wait until the function configuration is correctly updated before calling update_function_code.

Attached are images showing the pipeline console and the error, a snippet of the code where I believe the change is needed

Screen Shot 2021-11-19 at 10.19.02 AM.png

Screen Shot 2021-11-19 at 10.11.09 AM.pngScreen Shot 2021-11-19 at 10.13.18 AM.png

3 answers

3 accepted

0 votes
Answer accepted

Igor thanks for the 1.4.0 release.  It fixes the issue with the pipe. You might want to add an example that uses the WAIT attribute for an update followed by an alias operation.  In our case we had to add the WAIT attribute so that it waits for the update to complete before it tries the alias. Screen Shot 2021-12-03 at 9.26.17 AM.png

@Billy Vazquez  hi. We have the simple example that describes wait parameter:

Update the function 'my-lambda-function' in region 'us-east-1' with the function code contained in '' and wait until lambda update is successful.

  - pipe: atlassian/aws-lambda-deploy:1.4.0
      FUNCTION_NAME: 'my-lambda-function'
      COMMAND: 'update'
      ZIP_FILE: ''
      WAIT: 'true'

but you are right, we should also provide such example in Combining Update with Alias paragraph. 


Regards, Igor

0 votes
Answer accepted

@Billy Vazquez  hi. We released new pipe version atlassian/aws-lambda-deploy:1.4.0 to fix this issue. 

Regards, Igor.

0 votes
Answer accepted

@Billy Vazquez hi. Thanks for your investigation. We will fix this in near future.

Regards, Igor.

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,453 views 4 7
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