Hey everyone! I’ve an error which I don’t know how...
# help
a
Hey everyone! I’ve an error which I don’t know how to solve, any guidance would be great Here’s the error -
Copy code
AccessDeniedException: User: arn:aws:sts::654873835773:assumed-role/xx-ApiLambdaPOSTjobsService-xx/xx-ApiLambdaPOSTjobsxx is not authorized to perform: iam:PassRole on resource: arn:aws:iam::xxxxxxxxx:role/service-role/some-role
f
Hey @Ashishkumar Pandey, are you getting this error on deploy or inside your Lambda?
a
I figured it out, I just had to give my Api functions the permission to IAM.
I got it when inside my lambda.
f
Ah yeah that makes sense. Glad you figured it out!
a
I’m using AWS mediaconvert inside the function via @aws-sdk v3.
This was so much fun, I just love how easy it is to have a complete API ready in some hours.