In AWS Systems Manager you run an "aws ssm" command. You get "An error occurred (InvalidInstanceId) when calling the Send Command operation." What should you do?
Are there spaces or braces inside the double quotes? These symbols are not part of the instance ID. If you are running a script or complex command, extraneous symbols may be getting injected into your instance ID.