File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
sagemaker_studio_image_build Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,12 @@ def get_role(args):
3737 import sagemaker
3838
3939 logging .basicConfig (level = logging .INFO )
40-
41- return sagemaker .get_execution_role ().split ("/ " )[- 1 ]
40+ # arn:aws:iam::$account_id:role/$path/$name -> $path/$name
41+ return "/" . join ( sagemaker .get_execution_role ().split (": " )[- 1 ]. split ( "/" )[ 1 :])
4242 except ValueError as e :
4343 raise ValueError (
44- "Unable to determine execution role. Please provide via --role" , e
44+ "Unable to determine execution role. Please provide via the --role argument" ,
45+ e ,
4546 )
4647
4748
Original file line number Diff line number Diff line change 77
88setuptools .setup (
99 name = "sagemaker_studio_image_build" ,
10- version = "0.3" ,
10+ version = "0.3.1 " ,
1111 author = "Amazon Web Services" ,
1212 description = "Build Docker Images in Amazon SageMaker Studio using AWS CodeBuild" ,
1313 long_description = long_description ,
You can’t perform that action at this time.
0 commit comments