-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AWS SageMaker Unified Studio Workflow Operator #45726
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
providers/src/airflow/providers/amazon/aws/hooks/sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/src/airflow/providers/amazon/aws/hooks/sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/src/airflow/providers/amazon/aws/hooks/sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/src/airflow/providers/amazon/aws/operators/sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/src/airflow/providers/amazon/aws/hooks/sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/src/airflow/providers/amazon/aws/sensors/sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/tests/system/amazon/aws/example_sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/tests/system/amazon/aws/example_sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/tests/system/amazon/aws/example_sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/tests/system/amazon/aws/example_sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/amazon/src/airflow/providers/amazon/aws/hooks/sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/amazon/src/airflow/providers/amazon/aws/hooks/sagemaker_unified_studio.py
Show resolved
Hide resolved
providers/amazon/src/airflow/providers/amazon/aws/hooks/sagemaker_unified_studio.py
Outdated
Show resolved
Hide resolved
providers/amazon/src/airflow/providers/amazon/aws/hooks/sagemaker_unified_studio.py
Show resolved
Hide resolved
providers/amazon/src/airflow/providers/amazon/aws/operators/sagemaker_unified_studio.py
Show resolved
Hide resolved
Python 3.10 builds failing due to python dependency issues.
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
Adds an operator used for executing Jupyter Notebooks, Querybooks, and Visual ETL jobs within the context of a SageMaker Unified Studio project. --------- Co-authored-by: Niko Oliveira <[email protected]>
)" This reverts commit 9939b1b.
Description
Adds an operator used for executing Jupyter Notebooks, Querybooks, and Visual ETL jobs within the context of a SageMaker Unified Studio project.
SageMaker Unified Studio (SMUS) supports development of Airflow DAGs (called "workflows" within the product) that are run on an MWAA cluster managed by the project. These workflows have the ability to orchestrate the execution of Unified Studio artifacts that can connect to data assets stored in a SMUS project.
Implementation-wise, these notebooks are executed on a SageMaker Training Job running a SageMaker Distribution environment within the context of a SMUS project.
Components
Usage
Note that this operator introduces a dependency on the SageMaker Studio SDK https://www.pypi.org/project/sagemaker-studio
Testing
MWAA uses python 3.11 and postgres backend, so we will set those values for all tests.
Unit tests
breeze testing core-tests -p 3.11 -b postgres providers/amazon/tests/provider_tests/amazon/aws/*/test_sagemaker_unified_studio.py
System tests
Ensure a properly configured SageMaker Unified Domain and Project as indicated in the
example_sagemaker_unified_studio.py
file. Also ensure AWS credentials are populated and up to date. Then, populate theDOMAIN_ID
,PROJECT_ID
,ENVIRONMENT_ID
, andS3_PATH
infiles/airflow-breeze-config/variables.env
and run:^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.