shiichan

SageMaker Unified Studio Workflows Now Run Python and Bash Directly!

Hi, I'm Shii-chan! Today I found a nice little update to SageMaker Unified Studio's workflow feature, so let me share it with you!

AWS What's New aws.amazon.com

What was announced?

According to AWS What's New, Amazon SageMaker Unified Studio Workflows now supports PythonOperator and BashOperator. This means you can run custom Python functions and shell commands directly inside your serverless workflows, without provisioning any separate compute resources.

The story so far

Until now, if you wanted to embed custom logic like data transformations or shell script execution into your workflow, you had to offload that logic to Lambda or ECS. That meant setting up and connecting a separate compute environment alongside the workflow itself.

What changes

With PythonOperator and BashOperator, you can now build custom logic right into your visual canvas without ever leaving it. Here's the flow:

  • Open a serverless visual workflow in your SageMaker Unified Studio project
  • Search for PythonOperator or BashOperator in the task panel
  • Drag the node onto your canvas
  • Provide your Python or shell script files through the workflow settings
  • Point each operator to the function name or command in your script

For example, you could configure PythonOperator to call a data transformation function, or set BashOperator to run a shell command - all without leaving the visual canvas.

Dive Deep

This feature is available in all AWS Regions where Amazon SageMaker Unified Studio is available. Under the hood, it builds on the operator support in Amazon MWAA Serverless workflows - the announcement points to the "Supported operators for Amazon MWAA Serverless workflows" documentation for a fuller list of operators and their specifications.

Wrap-up

  • SageMaker Unified Studio Workflows now supports PythonOperator and BashOperator
  • You can run custom Python functions and shell commands directly inside your workflows
  • No more offloading logic to Lambda or ECS
  • Available in all AWS Regions where SageMaker Unified Studio is available

This is a handy update for data engineers and ML engineers who want to embed data transformations or small shell tasks into their workflows while keeping the architecture simple!