How Do You Troubleshoot the “aws ssm” Command Failing with a Message about “InvalidInstanceId”?

Problem scenario
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.

Leave a comment

Your email address will not be published. Required fields are marked *