The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to deploy a lambda with aws-lambda-deploy

thierry.paret
September 16, 2021

I'm trying to fix this error when deploying my lambda:

 

INFO: Writing results to file /opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/aws-lambda-deploy-env
Traceback (most recent call last):
File "/pipe.py", line 268, in <module>
File "/pipe.py", line 261, in run
self.update_function_code()
File "/pipe.py", line 213, in update_function_code
self.write_update_response_to_file(response)
File "/pipe.py", line 220, in write_update_response_to_file
with open(self.update_response_file_path, 'w') as result_file:
PermissionError: [Errno 13] Permission denied: '/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/aws-lambda-deploy-env'
I tried to use a documented fix : 
rm -rf /opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/aws-lambda-deploy-env
but it didn't work on my side

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
thierry.paret
September 16, 2021

Fixed by changing the rm command with :

rm -rf /opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/
TAGS
AUG Leaders

Atlassian Community Events