Commit b5f4e37
committed
fix(sagemaker-templates): Fix batch inference parameter resolution
The batch inference template was passing ParameterString objects directly
to job_arguments, which caused them to be serialized as literal JSON strings
instead of being resolved at runtime.
Changes:
- Use ProcessingInput with parameter as source for dynamic S3 paths
- Pass S3 URL parameter to script so it can extract filename
- Script constructs local path from filename
- Remove S3 download logic (ProcessingInput handles it)
This fixes the issue where InputDataUrl parameter was passed as
'{"Get": "Parameters.InputDataUrl"}' instead of the actual S3 path,
causing preprocessing jobs to fail with IndexError.
Resolves parameter resolution for batch inference pipelines.1 parent d098ee1 commit b5f4e37
2 files changed
Lines changed: 7 additions & 17 deletions
File tree
- modules/sagemaker/sagemaker-templates/templates/batch_inference/seed_code/build_app
- ml_pipelines/transformer
- source_scripts
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
80 | 71 | | |
81 | | - | |
82 | 72 | | |
83 | 73 | | |
84 | 74 | | |
| |||
0 commit comments