简体   繁体   中英

Unable to Delete an AWS Lambda function

I'm trying to delete the Lambda function, it is throwing an error
An error occurred when deleting your function: You do not have sufficient permission. Access denied.

I never got this issue before. I even tried using an IAM user with Administrator access permissions. Still the same issue.

Also, I'm trying to make deployments to a Lambda function, which is also throwing an error.
An error occurred: <FunctionName>LambdaFunction - Resource handler returned message: "null (Service: Lambda, Status Code: 403, Request ID: xxxxxxxx-xxxx-xxxx-xxxx-1071e7f17536, Extended Request ID: null)" (RequestToken: xxxxxxxx-xxxx-xxxx-xxxx-9602c6f12b36, HandlerErrorCode: AccessDenied).

I'm not able to modify anything on the Lambda Console (not even increase a function's memory limit). All other AWS services are working normally.

This started happening after deleting a specific cloud formation stack by skipping its Lambda function.

Somewhere, somehow, an IAM policy got put into effect explicitly denying you (or perhaps anyone) the ability to delete this lambda. If you have complete control over your account, log in with your root user and check what policies are on that lambda. Theoretically your root user can also delete it, but if it can't then open up a support ticket to have someone with AWS Root access help you delete it - I've done this in the past and bricked an S3 bucket so it couldn't even access itself!

Same happened to me. In my case my account was hacked & I got it back talking to AWS support, but then it was found suspicious and got blocked, automated deployments with IAM roles were failing, manually deleting lambda functions with root user account was not allowed, so I contacted AWS support again, told them that I have got my account back, and secured with new login info, and asked them to unblock my activities, couple hours later, everything got back to normal

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM