AWS Lambda The provided execution role does not have permissions to call DescribeNetworkInterfaces on EC2

0 votes

I new a Lambda function, there is no question. But when I input any code in this function[eg. console.log();] and click "Save", ERROR occurred: "The provided execution role does not have permissions to call DescribeNetworkInterfaces on EC2"

exports.handler = (event, context, callback) => { callback(null, 'Hello from Lambda'); console.log(); // here is my code };

I bound the function with Role: lambda_excute_execution(Policy: AmazonElasticTranscoderFullAccess) And this function is not bound with any triggers now.

And then, I give the role "AdministratorAccess" Policy, I can save my source code correctly.

This role can run Functions successfully before today.

Does anyone know about this error?

Apr 19, 2022 in AWS by Rahul
• 9,680 points
890 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

Not able to access the data on EBS in AWS.

Hi@akhtar, You cannot access the data on EBS ...READ MORE

answered May 5, 2020 in AWS by MD
• 95,460 points
905 views
+1 vote
1 answer

i have configure docker on AWS EC2 instance but commands are not working inside docker container.

Hello @Aniket , The docker exec command runs a new command ...READ MORE

answered Aug 5, 2020 in AWS by Niroj
• 82,840 points
1,704 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP