is it possible for Lambda's assumed temporary credentials to expire

0

Hello: As the requests from internet reach Lambda function frequently, I understand my Lambda function instance may not be stopped and replaced. Thus the assumed temporary credentials in the function instance will be reused for more than once. If the expiring time arrives, what behavior I will get in the code? An error in the runtime? In order to handle such scenario, what suggestions could you provide? Thanks in advance.

HBB
已提问 6 个月前244 查看次数
1 回答
1
已接受的回答

I don't believe that credentials will expire during the "active" lifetime of a Lambda function. That said: If you're using the AWS-supplied SDKs (all of which automatically retrieve credentials from the appropriate places) then even if credentials did expire and were replaced (as they would be on an EC2 instance) then that process is automatic and invisible to your code.

profile pictureAWS
专家
已回答 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则