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
demandé il y a 6 mois244 vues
1 réponse
1
Réponse acceptée

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
EXPERT
répondu il y a 6 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions