Bitbucket Pipelines Pipe: AWS Lambda Deploy
Dear support, I am troubleshooting a Bitbucket pipeline our company has leveraged to deploy an AWS Lambda function. We have found out that the pipeline fails to update a function if this is in a "Inactive" state.
Indeed, the documentation of the Pipeline Pipe says
"
Details
This pipe checks for lambda to be in Active State and LastUpdateStatus Successful before start executing.
Information about lambda states: AWS lambda states.
"
However, by reading the AWS documentation, it is not obvious for me/us why is the pipeline checking for that particular state, and does not act also on "Inactive State":
- In our case, the Lambda we are trying to update is in "Inactive State" and "LastUpdateStatus Successful"
- If I'm reading the AWS documentation correctly (https://aws.amazon.com/blogs/compute/tracking-the-state-of-lambda-functions/), it says "NOTE: Functions can only be updated if they are in the Active or Inactive state. Update commands issued against functions that aren’t in the Active or Inactive state will fail before execution."
Could you please clarify or accept a suggestion to update the Pipeline code to also work when the function is on "Inactive State" ?
Thank you