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달 전243회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠