{"id":22042889,"url":"https://github.com/jmoney/sagemaker-utilities","last_synced_at":"2026-04-10T13:31:19.311Z","repository":{"id":193619782,"uuid":"689160041","full_name":"jmoney/sagemaker-utilities","owner":"jmoney","description":"A set of utilities, and a serverless proxy, to help manage and use sagemaker endpoints","archived":false,"fork":false,"pushed_at":"2024-01-01T03:04:25.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-13T09:53:51.138Z","etag":null,"topics":["aws","github-site","homebrew-formula","license-management","mkdocs"],"latest_commit_sha":null,"homepage":"https://www.jmoney.dev/sagemaker-utilities","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmoney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-09T00:36:25.000Z","updated_at":"2023-09-11T15:59:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"f528f3d3-47e4-4831-8272-9567174c378e","html_url":"https://github.com/jmoney/sagemaker-utilities","commit_stats":null,"previous_names":["jmoney/sagemaker-lambda-proxy","jmoney/sagemaker-utilities"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jmoney/sagemaker-utilities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoney%2Fsagemaker-utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoney%2Fsagemaker-utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoney%2Fsagemaker-utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoney%2Fsagemaker-utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmoney","download_url":"https://codeload.github.com/jmoney/sagemaker-utilities/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoney%2Fsagemaker-utilities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31645193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","github-site","homebrew-formula","license-management","mkdocs"],"created_at":"2024-11-30T12:13:43.216Z","updated_at":"2026-04-10T13:31:19.289Z","avatar_url":"https://github.com/jmoney.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sagemaker Utilities\n\n## CLI\n\nThere are some command line utilities to help manage sagemaker endpoints.\n\n### sagemaker-endpoint-management\n\n#### Overview\n\n| Argument | Description |\n|---|---|\n| action | The action to take. Valid values are `create` or `delete` |\n| endpoint-name | The name of the endpoint to create or delete |\n| endpoint-config | The name of the endpoint config to use |\n\n#### Installation\n\n```bash\nbrew tap jmoney/aws\nbrew install sagemaker-endpoint-management\n```\n\n#### Run locally\n\n```bash\ngo run cmd/cli/endpoint/main.go --action create --endpoint-name \u003cendpoint-name\u003e --endpoint-config \u003cendpoint-config\u003e\n```\n\n## Sagemaker Lambda Proxy\n\nA proxy that runs as a Lambda to sagemaker to testing certain sagemaker models.  This is a proof of concept and not meant for production use.\n\n### Prerequisites\n\n```bash\nbrew bundle --file Brewfile\ntfenv use\n```\n\n### Deploy\n\n```bash\nmake build\nterraform init\nAWS_PROFILE=\u003cprofile\u003e terraform plan -out=plan.out -var endpoint_name=\u003cendpoint-name\u003e\nAWS_PROFILE=\u003cprofile\u003e terraform apply plan.out\n```\n\n### Destroy\n\n```bash\nAWS_PROFILE=\u003cprofile\u003e terraform destroy -var endpoint_name=\u003cendpoint-name\u003e\n```\n\n### Testing\n\n```bash\ncurl --silent --http1.1 --request POST --header \"Content-Type: application/json\" --header \"X-NONCE: $(terraform output -json | jq -r .nonce.value)\" \"$(terraform output -json | jq -r .url.value)\" -d @data.json | jq -r '.[].generation.content'\n```\n\nThere is a `data.json` file at the root of this repo with a question you can use.\n\n### Docker\n\nThere is a dockerfile built to be used with lambda for the container image package type.  It has not been tested for local runs but in theory it should work.  Lambda does not allow images pulled from ghcr and only AWS ECR registries so the docker image would need to be mirrored from ghcr to ecr in some way.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmoney%2Fsagemaker-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmoney%2Fsagemaker-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmoney%2Fsagemaker-utilities/lists"}