You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: additional-databases/sagemaker/neptune-notebook-cloudformation/README.md
+20-13Lines changed: 20 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
## Launching graph-notebook as Amazon Neptune Workbench via AWS CloudFormation
2
2
3
-
The AWS CloudFormation template in this folder, [`neptune-workbench-stack.yaml`](neptune-workbench-stack.yaml), deploys Amazon Neptune workbench notebooks as resources, and includes the base 'Getting Started' notebooks. The workbench lets you work with your Amazon Neptune cluster using Jupyter notebooks hosted by Amazon SageMaker. You are billed for workbench resources through Amazon SageMaker, separately from your Neptune billing.
3
+
The AWS CloudFormation template in this folder, [`neptune-workbench-stack.yaml`](neptune-workbench-stack.yaml), deploys Amazon Neptune workbench notebooks as resources, and includes the base 'Getting Started' notebooks. The workbench lets you work with your Amazon Neptune Database cluster using Jupyter notebooks hosted by Amazon SageMaker. You are billed for workbench resources through Amazon SageMaker, separately from your Neptune billing.
4
4
5
5
### Parameter details
6
6
#### Minimum permissions for the SageMakerNotebookRole
7
-
This is the ARN for the AWS IAM role that the notebook instance will assume. Make sure that this role has at least the following minimum permissions within its service role policy:
7
+
You may opt to have your notebook instance assume an existing AWS IAM role, via the `SageMakerNotebookRoleArn` stack parameter. Make sure that this role has at least the following minimum permissions within its service role policy:
8
8
9
9
```json
10
10
{
@@ -17,21 +17,36 @@ This is the ARN for the AWS IAM role that the notebook instance will assume. Mak
The role should also establish the following trust relationship:
36
51
37
52
```json
@@ -48,11 +63,3 @@ The role should also establish the following trust relationship:
48
63
]
49
64
}
50
65
```
51
-
52
-
#### How to populate the 'Cluster' value within the AWS Console for Amazon Neptune Notebooks
53
-
Add the following tags manually to the notebook instance.
54
-
55
-
| Key | Value |
56
-
| ------------- |-------------|
57
-
|**aws-neptune-cluster-id**| Amazon Neptune database cluster ID (found under *DB cluster id* under *Configuration* of the selected cluster in the AWS console) |
58
-
|**aws-neptune-resource-id**| Amazon Neptune cluster resource ID (found under *Resource id* under *Configuration* of the selected cluster in the AWS console) |
Copy file name to clipboardExpand all lines: additional-databases/sagemaker/neptune-notebook-cloudformation/neptune-workbench-stack.yaml
+91-36Lines changed: 91 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -52,11 +52,28 @@ Parameters:
52
52
Description: The cluster endpoint of an existing Neptune cluster.
53
53
Type: String
54
54
55
+
NeptuneClusterResourceId:
56
+
Description: The resource ID of the existing Neptune cluster.
57
+
Type: String
58
+
55
59
NeptuneClusterPort:
56
-
Description: 'OPTIONAL: The Port of an existing Neptune cluster (default 8182).'
60
+
Description: 'OPTIONAL: The Port of the existing Neptune cluster (default 8182).'
57
61
Type: String
58
62
Default: '8182'
59
63
64
+
NeptuneClusterAuthMode:
65
+
Description: The IAM authentication setting on the existing Neptune cluster.
66
+
Type: String
67
+
Default: 'DEFAULT'
68
+
AllowedValues:
69
+
- 'IAM'
70
+
- 'DEFAULT'
71
+
72
+
NeptuneClusterLoadFromS3Arn:
73
+
Description: 'OPTIONAL: The ARN of the S3 bucket to load data from.'
74
+
Type: String
75
+
Default: ''
76
+
60
77
NeptuneClusterSecurityGroups:
61
78
Description: The VPC security group IDs. The security groups must be for the same VPC as specified in the subnet.
62
79
Type: List<AWS::EC2::SecurityGroup::Id>
@@ -65,15 +82,21 @@ Parameters:
65
82
Description: The ID of the subnet in a VPC to which you would like to have a connectivity from your ML compute instance.
66
83
Type: AWS::EC2::Subnet::Id
67
84
68
-
SageMakerNotebookRole:
69
-
Description: The ARN for the IAM role that the notebook instance will assume.
85
+
SageMakerNotebookRoleArn:
86
+
Description: 'OPTIONAL: The ARN for the IAM role that the notebook instance will assume. If not provided, a role will be automatically created, based on the cluster information.'
0 commit comments