I'm having a pprblem trying to set up a pipeline for update an AWS Lambda function.
Once the deploy is triggered, it fails with the following error:
Status: Downloaded newer image for bitbucketpipelines/aws-lambda-deploy:0.2.3
INFO: Updating Lambda function.
aws lambda update-function-code --function-name apikey-token-authorizer2 --publish --zip-file fileb://apiGatewayAuthorizer.zip
Error parsing parameter '--zip-file': Unable to load paramfile fileb://apiGatewayAuthorizer.zip: [Errno 2] No such file or directory: 'apiGatewayAuthorizer.zip'
✖ Failed to update Lambda function code.
Looks like the script couldn't find the artifact, but I don't know why.
Here is the bitbucket-pipelines.yml file content:
# Workflow Configuration
name: Build and Test
- echo Installing source YARN dependencies.
- yarn install
- apt update && apt install zip
# Exclude files to be ignored
- echo Zipping package.
- zip -r apiGatewayAuthorizer.zip . -x *.git* bitbucket-pipelines.yml
name: Deploy to testing - Update Lambda code
- pipe: atlassian/aws-lambda-deploy:0.2.3
Welcome to the community.
Based on your YAML configuration, I can see that you're using Parallel steps.
According to the documentation:
Parallel steps can only use artifacts produced by previous steps, not by steps in the same parallel set.
Hence, this is why the artifacts is not generated in the "Build" step because those 2 steps are within a parallel set.
For that, you can just remove the parallel configuration and use multi-steps instead.
This way, the first step can generate the artifact and pass it on to the second step.
Hope it helps and let me know how it goes.
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
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