Skip to content

Cannot create or delete Lambda functions, or attach S3 triggers even with root account

0

Hello community,

I’ve been facing a critical issue in my AWS account (standalone, not under an AWS Organization). For several days now, I’ve been unable to create new Lambda functions, delete existing ones, or associate S3 triggers. I’ve tried everything I could think of, with no luck:

What I’ve already verified / tried: I’m using the root account (arn:aws:iam::[my-account-id]:root, verified via aws sts get-caller-identity). I can create/delete S3 buckets and objects without any issues. The IAM role AWSServiceRoleForLambda is missing, and when I attempt to create it via: aws iam create-service-linked-role --aws-service-name lambda.amazonaws.com It returns the error: An error occurred (AccessDenied) when calling the CreateServiceLinkedRole operation: Cannot find Service Linked Role template for lambda.amazonaws.com I’ve tried this across multiple activated regions (us-west-1, us-east-1, sa-east-1, etc.). I created a new IAM user with AdministratorAccess permissions and configured its credentials correctly in the CLI — same issue occurs. In the AWS Console, when accessing Lambda, I get: “Access denied. You don’t have permission to perform this action. UnknownError” (screenshot attached). Checked AWS Organizations — I am NOT part of any organization, and no SCPs are applied. STS is enabled for all the necessary regions.

My suspicion It seems like the account is internally blocked from creating the required service-linked role for Lambda. Without this role, Lambda cannot perform any operations. My question What could be blocking Lambda from functioning, even under the root account? Is there a deeper setting or account-level issue preventing Lambda from creating its required service-linked role? And is there any way to fix this if I don’t have access to paid AWS Support?

Any guidance or similar experience would be greatly appreciated 🙏 Thanks in advance!

asked a year ago250 views
1 Answer
1

This issue of not being able to access or manage Lambda functions as a root user and encountering "Access denied" and "UnknownError" messages is not uncommon. Based on your description, there are several potential causes:

  1. There might be an ongoing issue or outage with Lambda in your region. It's worth checking the AWS Service Health Dashboard to see if there are any reported problems.

  2. Your account may have experienced a temporary block due to a suspected malicious access attempt. This can cause functions to become temporarily inaccessible, even for the root user.

  3. There could be an underlying account-specific issue that's preventing Lambda operations.

Since you've already verified that you're using the root account, tried multiple regions, and confirmed you're not part of an AWS Organization with SCPs, the most effective solution would be to contact AWS Support directly. Even without a paid support plan, you can open a support case under the "Account and billing" category, which can be done free of charge.

While waiting for a response from AWS Support, you might try:

  • Clearing your browser's cache or accessing in an incognito window
  • Using a different browser or device to rule out any local issues
  • Checking if the issue persists after changing your root account password

In some cases, these issues resolve themselves after a few hours, as there might be temporary service disruptions that aren't always reflected on the service health dashboard.
Sources
Root User - Lambda Functions are Gone! | AWS re:Post
Access denied in creating lambda function | AWS re:Post
Lambda function creation permission Denied , in Dashboard | AWS re:Post
Failed to create Lambda function simply withe the error message "The role defined for the function cannot be assumed by Lambda" | AWS re:Post

answered a year ago
AWS
EXPERT
reviewed a year ago
AWS
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.