You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Symfony 5.4 along with the Messenger component, which includes the async-aws/core and async-aws/sqs packages. Our integration is configured to connect using the AWS Identity and Access Management (IAM) instance profile, which is valid for up to six hours.
My workers are managed by supervisord with a 3600-second time limit, after which the workers are automatically restarted.
Credentials are loaded when the worker starts, but if the credentials expire before the end of the worker's time limit, I encounter this error:
HTTP 403 returned for "https://sqs.eu-west-3.amazonaws.com/
Message: Signature expired: 20231227T074304Z is now earlier than 20231227T074415Z (20231227T075915Z - 15 min.)
These security credentials are temporary and we rotate them automatically.
We make new credentials available at least five minutes before the expiration of the old credentials.
Is there a way to automatically rerun the authentication if the Expiration time plus 5 minutes is greater than the current datetime, without having to restart my workers?
The text was updated successfully, but these errors were encountered:
I can't reproduce the issue, from the source code, we are using the expiration date provided by AWS to evict the cached (30 seconds before the expiration).
Could you add logs in your application to assert the Credentials::expireDate property is defined and credentials are re-regenerated when expired?
Hello,
Thank you for your great packages! 😄
I'm using Symfony 5.4 along with the Messenger component, which includes the
async-aws/core
andasync-aws/sqs
packages. Our integration is configured to connect using the AWS Identity and Access Management (IAM) instance profile, which is valid for up to six hours.My workers are managed by supervisord with a 3600-second time limit, after which the workers are automatically restarted.
Credentials are loaded when the worker starts, but if the credentials expire before the end of the worker's time limit, I encounter this error:
I checked the AWS documentation and found this:
Is there a way to automatically rerun the authentication if the
Expiration
time plus 5 minutes is greater than the current datetime, without having to restart my workers?The text was updated successfully, but these errors were encountered: