-
Notifications
You must be signed in to change notification settings - Fork 563
Description
Open Source Contributors Welcomed!
Please comment below if you would like to work on this issue!
Contact Details [Optional]
What happened?
The configuration of the instance_type for AWS Sagemaker Orchestrator is currently determined by the developer/data scientist/ML engineer at the time of running the pipeline via the SagemakerOrchestratorSettings in code. This setup does not allow a DevOps Engineer or ML Engineer with an admin role to control or restrict the choice of instance types. This could lead to potential misuse, such as selecting excessively high-resource instances for trivial tasks or intentionally creating resource-intensive loops.
Task Description
Move the instance_type attribute from the SagemakerOrchestratorSettings in the code to the SagemakerOrchestrator config, which is set up during the component registration. This change will allow better control and governance over the resources used for running pipelines in AWS Sagemaker.
Expected Outcome
- The
instance_typeshould be configurable at the component registration level by an admin or a DevOps engineer. - Developers or data scientists should not be able to override the instance_type at the pipeline execution level.
- The change should ensure better resource management and prevent potential misuse of AWS resources.
Steps to Implement
- Update the
SagemakerOrchestratorconfiguration to include theinstance_typeattribute. - Remove the
instance_typeoption from theSagemakerOrchestratorSettings. - Ensure that the orchestrator respects the
instance_typeset during the component registration and does not allow overrides at runtime. - Update the documentation to reflect these changes.
Additional Context
This change is prompted by the need to enhance governance and control over resource utilization in cloud environments, particularly in team settings where multiple individuals have access to deploy pipelines.
Code of Conduct
- I agree to follow this project's Code of Conduct