-
Notifications
You must be signed in to change notification settings - Fork 0
/
IPInsightsDemo.yaml
48 lines (42 loc) · 1.35 KB
/
IPInsightsDemo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Create SageMaker Notebook for IP Insights Demo.
Parameters:
NotebookName:
Type: String
Default: IPInsightsDemo
Description: Enter the name of the SageMaker notebook instance. Deafault is IPInsightsDemo.
VolumeSize:
Type: Number
Default: 10
MinValue: 5
MaxValue: 16384
ConstraintDescription: Must be an integer between 5 (GB) and 16384 (16 TB).
Description: Enter the size of the EBS volume in GB.
Resources:
# SageMaker Execution Role
SageMakerIamRole:
Type: "AWS::IAM::Role"
Properties:
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
-
Effect: Allow
Principal:
Service: sagemaker.amazonaws.com
Action: sts:AssumeRole
Path: "/"
ManagedPolicyArns:
- "arn:aws:iam::aws:policy/AmazonSageMakerFullAccess"
- "arn:aws:iam::aws:policy/AmazonS3FullAccess"
- "arn:aws:iam::aws:policy/IAMFullAccess"
# SageMaker notebook
NotebookInstance:
Type: "AWS::SageMaker::NotebookInstance"
Properties:
InstanceType: "ml.t3.medium"
NotebookInstanceName: !Ref NotebookName
RoleArn: !GetAtt SageMakerIamRole.Arn
VolumeSizeInGB: !Ref VolumeSize
DefaultCodeRepository: https://github.com/hxhwing/SageMaker-IPInsights-Demo.git