title: How do I call a SageMaker Endpoint using the AWS CLI (
body: <p>I'm trying to invoke the iris endpointfrom the <a href="https://github.com/awslabs/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/tensorflow_iris_dnn_classifier_using_estimators/tensorflow_iris_dnn_classifier_using_estimators.ipynb" rel="nofollow noreferrer">SageMaker example notebooks</a> using the aws cli. I've tried using the following command:</p>
  
  <pre><code>!aws sagemaker-runtime invoke-endpoint \
  --endpoint-name sagemaker-tensorflow-py2-cpu-2018-03-19-21-27-52-956 \
  --body "[6.4, 3.2, 4.5, 1.5]" \
  --content-type "application/json" \
  output.json
  </code></pre>
  
  <p>I get the following response:</p>
  
  <pre><code>{
      "InvokedProductionVariant": "AllTraffic", 
      "ContentType": "*/*"
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>