Skip to content

Automating code execution tasks on Amazon SageMaker via APIs

Notifications You must be signed in to change notification settings

athewsey/remote-sagemaker

Repository files navigation

Automating Code Execution on Amazon SageMaker

As well as many other features, Amazon SageMaker provides Jupyter-based data science notebook environments on the cloud in two flavours:

In either case, users may wish to automatically trigger the execution of code in SageMaker notebook environments - to customise the out-of-the-box setup or run any other required jobs or processes.

This repository demonstrates some basic code examples using the same Jupyter Server REST API and Jupyter Client WebSocket API (plus some SageMaker Studio extensions).

Related Tools

Many of the concepts in these examples are extensible and transferable (e.g. to classic NBIs), but in some settings alternative patterns may be more appropriate:

A Note on Security

As these examples highlight, providing the IAM sagemaker:CreatePresignedDomainUrl (for Studio) and sagemaker:CreatePresignedNotebookInstanceUrl (for NBI) permissions is sufficient to grant login to the target SageMaker environment and also code execution on that environment.

For more information on conditions you can apply to scope down these permissions, refer to the IAM reference for Amazon SageMaker.

About

Automating code execution tasks on Amazon SageMaker via APIs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published