Reputation: 32276
I found a lambda function that will backup the instances periodically.
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
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
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