Functions that read and write the local Sagemaker execution role.
The role will be saved locally in ~/.aws/config
.
Use options(sagemaker.default.role.profile = "profile_name")
to
change the default profile name.
sagemaker_save_execution_role(role_arn, profile_name = "sagemaker") sagemaker_get_execution_role(profile_name = "sagemaker")
role_arn | The ARN of the Sagemaker execution role. See below for an example. |
---|---|
profile_name | Name of profile to save in the |
Requires awscli.
The Sagemaker ARN has the following form:
arn:aws:iam::(account_number):role/service-role/(SageMakerExecutionRole)