shantanuo
shantanuo

Reputation: 32276

Lambda execution role

I found a lambda function that will backup the instances periodically.

http://blog.powerupcloud.com/2016/10/15/serverless-automate-ami-creation-and-deletion-using-aws-lambda/

when I tried this function I got an error...

statusCode: 403, message: 'You are not authorized to perform this operation.'

May be because I chose "lambda_basic_execution" existing role. What is the correct Role to choose for this to run?

Upvotes: 1

Views: 4986

Answers (2)

priyanka sharma
priyanka sharma

Reputation: 123

You need to give the correct permissions to the lambda_basic_execution role. The minimum required permissions are : ec2:DescribeInstances, ec2:CreateImage, ec2:CreateTags, ec2:DescribeImages, ec2:DeregisterImage and ec2:DeleteSnapshot

Upvotes: 2

Mark B
Mark B

Reputation: 201088

You probably need to be creating your own IAM execution role that has the exact permissions you need. Follow this guide.

Upvotes: 0

Related Questions