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
gefragt vor 6 Monaten243 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen