Skip to content

Commit

Permalink
Fix Broken aws-sagemaker docs (#1843)
Browse files Browse the repository at this point in the history
* Fix Broken aws-sagemaker docs with updates in `settings.py` and imports
  • Loading branch information
noklam authored Sep 8, 2022
1 parent 6a2c27c commit 3c1d6a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/source/deployment/aws_sagemaker.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ s3:
output_path: s3://<your_s3_bucket_name>/output
```

### Update the project hooks
### Update the project settings

Now you need to tell Kedro to use the [`TemplatedConfigLoader`](/kedro.config.TemplatedConfigLoader) instead of the default `ConfigLoader` class to read the project configuration. It is very easy to do via `settings.py` file - open `src/kedro_tutorial/settings.py` file and set the `CONFIG_LOADER_CLASS` constant:

Expand All @@ -118,6 +118,9 @@ from kedro.config import TemplatedConfigLoader
CONFIG_LOADER_CLASS = TemplatedConfigLoader
CONFIG_LOADER_ARGS = {
"globals_pattern": "*globals.yml",
}
```

### Update the data science pipeline
Expand Down Expand Up @@ -204,7 +207,7 @@ Open `src/kedro_tutorial/pipelines/data_science/pipeline.py` and replace its con
<summary><b>Click to expand</b></summary>

```python
from kedro.pipeline import Pipeline, node
from kedro.pipeline import Pipeline, node, pipeline

from .nodes import (
evaluate_model,
Expand Down

0 comments on commit 3c1d6a7

Please sign in to comment.