Skip to content

Instantly share code, notes, and snippets.

@leehanchung
Created December 21, 2019 00:06
Show Gist options
  • Save leehanchung/9b3837b5c2bc512839e3aa9ec2dbd468 to your computer and use it in GitHub Desktop.
Save leehanchung/9b3837b5c2bc512839e3aa9ec2dbd468 to your computer and use it in GitHub Desktop.
Bash script for testing Sagemaker Endpoint with a bogus payload
#!/usr/bin/env bash
ENDPOINT_NAME=<<name your endpoint>>
aws sagemaker-runtime invoke-endpoint \
--endpoint-name ${ENDPOINT_NAME} \
--body '{"instances": [1.0,2.0,3.0]}' response.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment