How can I resolve the error “The security token included in the request is invalid” when running aws iam upload-server-certificate?
Try to go to the security credentials on your account page: Click on your name in the top right corner -> My security credentials Then generate access keys over there and use those access keys in your credentials file (aws configure)