How Do You Troubleshoot the AWS CLI Error “Invalid Document Name”?

Problem scenario
You run an AWS SSM command. You receive "An error occurred (ValidationException) when calling the CreateDocument operation: Invalid document Amazon…" What do you do to get the command to work?

Document names cannot begin with three strings (regardless of capitalization): "aws", "amazon", or "amzn".

Change the document name to not have a string such as one of the above.

n.b. The error message, as of early 2020, is not very helpful. We hope Amazon will provide a better error message in the future.

Leave a comment

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