awscli-mfa
awscli-mfa copied to clipboard
AWS_SESSION_EXPIRY is set to -1 when ISO8601 timestamp returned uses +00:00 instead of Z
Using Ubuntu 20.04, the timestamp I'm getting uses +00:00 instead of Z.
Example: 2020-08-05T11:52:00+00:00 instead of 2020-08-05T11:52:00Z
Quick fix is to just update the regex matcher to also honor +00:00 as if it's Z since Z is the same as +00:00 AFAIK.
Using Ubuntu 20.04, the timestamp I'm getting uses +00:00 instead of Z.
Example: 2020-08-05T11:52:00+00:00 instead of 2020-08-05T11:52:00Z
Quick fix is to just update the regex matcher to also honor +00:00 as if it's Z since Z is the same as +00:00 AFAIK.
This issue has been driving me nuts for hours. Just wanted to thank you for pointing out the problem, and submitting a PR with the solution.