diff --git a/modules/sagemaker/sagemaker-templates/templates/multi_account_basic/pipeline_constructs/build_pipeline_construct.py b/modules/sagemaker/sagemaker-templates/templates/multi_account_basic/pipeline_constructs/build_pipeline_construct.py index 67fba1df..86c45a53 100644 --- a/modules/sagemaker/sagemaker-templates/templates/multi_account_basic/pipeline_constructs/build_pipeline_construct.py +++ b/modules/sagemaker/sagemaker-templates/templates/multi_account_basic/pipeline_constructs/build_pipeline_construct.py @@ -112,7 +112,7 @@ def __init__( sagemaker_seedcode_bucket.grant_read_write(sagemaker_policy) sagemaker_execution_role.grant_pass_role(codebuild_role) - sagemaker_execution_role.grant_pass_role(sagemaker_policy) + sagemaker_execution_role.grant_pass_role(sagemaker_execution_role) # Attach the policy sagemaker_policy.attach_to_role(sagemaker_execution_role)