The workshop will use Amazon SageMaker Notebook as the client to call Fraud Detector to check risk with the event. Before you launch the SageMaker Notebook, you create an IAM role which SageMaker Notebook will use to authorize call to the Fraud Detector.
-
Goto the IAM Management console, click on the Roles menu in the left and then click on the Create role button.
-
On the next screen, select SageMaker as the service and click on the Next: Permissions button.
-
On the next screen, click on the Next: Tags button.
-
On the next screen, click on the Next: Review button.
-
On the next screen, type in dojosagemakerrole as the role name and click on the Create role button.
-
The role is created in no time. Open the dojosagemakerrole role details, remove AmazonSageMakerFullAccess policy and attach PowerUserAccess policy to the role.
-
The role is ready. Let’s launch the Notebook first. Goto Amazon SageMaker console. Select Notebook instances in the left and then click on the Create notebook instance button.
-
On the next screen, type in dojofraudclientnotebook as the notebook instance name, select dojosagemakerrole as the IAM role. Leave rest of the configuration as the default and click on the Create notebook instance button.
-
The notebook instance launch starts. Wait till the status changes to InService.
-
The notebook is ready, let’s write client code in Python.