Matt Gardner
09/18/2025, 3:44 PMExpiredToken errors when using Descope's AWS SES connector with role-based permissions. We seem to be able to force refresh by changing the role ARN.
Originally we had the token expire after 1 hour - we have increased that to 12 hours.
What is the token refresh frequency on the Descope side - I am hoping it is shorter than the 12 hours AWS role session duration.Meir Wahnon
09/18/2025, 4:02 PMKevin Gao
09/18/2025, 4:35 PMsts:AssumeRole) with a DurationSeconds value that matches your max session duration.
If you're having trouble, we can certainly hop on a call to go over the settings, or you can use our CF stack which is found in the AWS SES connector configuration page to configure this.Matt Gardner
09/18/2025, 4:40 PMMatt Gardner
09/18/2025, 5:09 PMDaniel Newman
09/18/2025, 5:13 PMDaniel Newman
09/18/2025, 5:17 PMKevin Gao
09/18/2025, 5:33 PMMatt Gardner
09/18/2025, 5:34 PME032001 Failed to send email through SES (ExpiredToken) errors. We only increased the session duration today to see if it worked for longer - agree on the security risk. We will revert to 1 hour.
We also checked the difference between CF and our role - and spotted this:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ses:SendEmail",
"ses:SendRawEmail"
],
"Resource": "arn:aws:ses:us-west-2:715841348893:identity/noreply@cheggalpha.com" <<<< You simply have *
}
]
}Matt Gardner
09/18/2025, 5:34 PMMatt Gardner
09/18/2025, 5:35 PMDaniel Newman
09/18/2025, 5:40 PMDaniel Newman
09/18/2025, 5:42 PMMatt Gardner
09/18/2025, 5:53 PMKevin Gao
09/18/2025, 6:15 PMMatt Gardner
09/18/2025, 6:23 PMMatt Gardner
09/18/2025, 6:23 PMKevin Gao
09/18/2025, 6:27 PMMatt Gardner
09/18/2025, 6:30 PMMatt Gardner
09/18/2025, 6:49 PMMatt Gardner
09/18/2025, 6:50 PMKevin Gao
09/18/2025, 6:54 PMKevin Gao
09/18/2025, 6:55 PM