I'm trying to fix this error when deploying my lambda:
<span>INFO: Writing results to file /opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/aws-lambda-deploy-env</span>
<span>Traceback (most recent call last):</span>
<span>File "/pipe.py", line 268, in <module></span>
<span><a href="http://pipe.run/" rel="noopener nofollow noreferrer" target="_blank">pipe.run</a>()</span>
<span>File "/pipe.py", line 261, in run</span>
<span>self.update_function_code()</span>
<span>File "/pipe.py", line 213, in update_function_code</span>
<span>self.write_update_response_to_file(response)</span>
<span>File "/pipe.py", line 220, in write_update_response_to_file</span>
<span>with open(self.update_response_file_path, 'w') as result_file:</span>
<span>PermissionError: [Errno 13] Permission denied: '/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/aws-lambda-deploy-env'</span>
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