AWS “A client error (InvalidClientTokenId) occurred when calling…” on Ubuntu
This error is thrown when the access key and secret access key were not recognized because they were deleted or marked inactive. It could also be a copy and paste error when creating credentials file. If you are on Ubuntu also try to run your command with sudo.
Hope it helps!