Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 2.79 KB

README.md

File metadata and controls

29 lines (16 loc) · 2.79 KB

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.