How can I resolve the error “The security token included in the request is invalid” when running aws iam upload-server-certificate?

If you’re using the CLI with MFA, you have to set the session token in addition to setting the access and secret keys. Please refer to this article:

Leave a Comment