AWS AI Services Programming Series - Part5 (Fraud Detector)

   Go back to the Task List

  « 4. Create Fraud Detector    6: Create Client »

5: Setup Development Environment

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.

  1. Goto the IAM Management console, click on the Roles menu in the left and then click on the Create role button.

    Fraud Detector

  2. On the next screen, select SageMaker as the service and click on the Next: Permissions button.

    Fraud Detector

  3. On the next screen, click on the Next: Tags button.

  4. On the next screen, click on the Next: Review button.

  5. On the next screen, type in dojosagemakerrole as the role name and click on the Create role button.

    Fraud Detector

  6. The role is created in no time. Open the dojosagemakerrole role details, remove AmazonSageMakerFullAccess policy and attach PowerUserAccess policy to the role.

    Fraud Detector

  7. 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.

    Fraud Detector

  8. 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.

    Cloud9

  9. The notebook instance launch starts. Wait till the status changes to InService.

    Cloud9

  10. The notebook is ready, let’s write client code in Python.