title: Regular pattern error for Amazon Rekognition index-faces method calling from S3
body: <p>I am following this tutorial: <a href="https://aws.amazon.com/blogs/machine-learning/easily-perform-facial-analysis-on-live-feeds-by-creating-a-serverless-video-analytics-environment-with-amazon-rekognition-video-and-amazon-kinesis-video-streams/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/machine-learning/easily-perform-facial-analysis-on-live-feeds-by-creating-a-serverless-video-analytics-environment-with-amazon-rekognition-video-and-amazon-kinesis-video-streams/</a></p>
  
  <p>However, when I run the command</p>
  
  <pre><code>
          aws rekognition index-faces --image '{"S3Object":{"Bucket":" 
         &lt;S3BUCKET&gt;","Name":"&lt;MYFACE_KEY&gt;.jpeg"}}' --collection-id 
      "rekVideoBlog" -- 
         detection-attributes "ALL" --external-image-id "&lt;YOURNAME&gt;" --region 
      us- 
         west-2
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>
  An error occurred (ValidationException) when calling the IndexFaces operation: 3 validation errors detected: Value '"Alex"' at 'externalImageId' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z0-9_.\-:]+; Value '"rekVideoBlog"' at 'collectionId' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z0-9_.\-]+; Value '["ALL"]' at 'detectionAttributes' failed to satisfy constraint: Member must satisfy constraint: [Member must satisfy enum value set: [ALL, DEFAULT]]
  
  
  </code></pre>
  
  <p>I have no idea what's wrong. I replaced the single quote with double quotes and double quotes with escaped double quotes (\") so it'd work but I got that error.</p>