Repository navigation
Commit 9bf5be5
fix(examples): use Session instance for region in train-inference-e2e (#6050)
The train-inference-e2e-example config cell read AWS_REGION off the
Session class (AWS_REGION = Session.boto_region_name). boto_region_name
is an instance @Property, so class access returns the property object
rather than a region string; the subsequent
boto3.Session(region_name=AWS_REGION) then fails with
'TypeError: expected string or bytes-like object, got property' and
PYTORCH_TRAINING_IMAGE is built with a bogus region.
Instantiate a Session and read the property off the instance.
Co-authored-by: hrehard <hrehard@amazon.com>1 parent f81c590 commit 9bf5be5
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments