Hi everyone!
I am getting below error while deploying a jar file to the lambda function through s3 bucket using jenkins pipeline
An error occurred (AccessDeniedException) when calling the UpdateFunctionCode operation: User: arn:aws:sts::1111111111111111:assumed-role/jenkins/i-0000000000 is not authorized to perform: lambda:UpdateFunctionCode on resource: arn:aws:lambda:us-east-1:11111111111:function:demo because no identity-based policy allows the lambda:UpdateFunctionCode action
To overcome this error need to update policy of the role using serverles yaml
As i am new to serverless
Can any one help me how to write the yaml for updating the policy to the role