Failed to create Lambda function simply withe the error message "The role defined for the function cannot be assumed by Lambda"

0

I've tried to create a Lambda function. I chose "Author from scratch" and below. Runtime: Node.js 20x Architecture: x86_64 Change default execution role: Create a new role with basic lambda permissions. Then, pressed the create function button. And I got the error "The role defined for the function cannot be assumed by Lambda."

The role is created with the permission: AWSLambdaBasicExecutionRole. And Trust relationship: sts:AssumeRole for lambda.

A few hours ago, I could create a lambda function. I cannot see any alert for quotas. If anyone has ideas where I should check, let me know. Thank you.

asked 2 months ago81 views
4 Answers
3
Accepted Answer

Hello.

There was a failure related to IAM (STS) earlier, so this may be related.
It looks like it has been restored now, so you should be able to set it up without any problems.
a

profile picture
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
profile picture
EXPERT
reviewed 2 months ago
profile picture
EXPERT
reviewed 2 months ago
1

After I posted this question. I tried to create the Lambda function again. And it succeeded!! I just needed to wait for an hour.

answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
1

If you encounter any issues or want to check for AWS service health issues specific to the region you're working in, you can bookmark the following link to stay informed about any ongoing outages or service disruptions:

[+] https://health.aws.amazon.com/health/status

This link provides up-to-date information on the operational status of various AWS services across different regions. By monitoring this page, you can quickly identify if there are any service disruptions or outages that might be impacting your AWS resources or applications.

AWS
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
0

Thank you for your information. It is helpful!

answered 2 months 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.

Guidelines for Answering Questions

Relevant content