Skip to content

Commit fefca6a

Browse files
committed
add: PreventDirectInternetAccessSageMakerNotebook
1 parent 28eb98f commit fefca6a

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

service_control_policies/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,10 @@ Services such as Lambda, AWS Glue, CloudShell, and SageMaker support different d
236236
### "Sid": "PreventNonVpcOnlySageMakerDomain"
237237

238238
This statement is included in the [data_perimeter_governance_policy_2.json](data_perimeter_governance_policy_2.json) and prevents users from creating [Amazon SageMaker domains](https://docs.aws.amazon.com/sagemaker/latest/dg/sm-domain.html) that can access the internet through a VPC managed by SageMaker, or updating SageMaker domains to allow access to the internet through a VPC managed by SageMaker.
239-
For more details, see the definition of the parameter [`AppNetworkAccessType`](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UpdateDomain.html#sagemaker-UpdateDomain-request-AppNetworkAccessType) in the Amazon SageMaker API Reference.
239+
For more details, see the definition of the parameter [`AppNetworkAccessType`](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UpdateDomain.html#sagemaker-UpdateDomain-request-AppNetworkAccessType) in the Amazon SageMaker API Reference.
240+
241+
242+
### "Sid": "PreventDirectInternetAccessSageMakerNotebook"
243+
244+
This statement is included in the [data_perimeter_governance_policy_2.json](data_perimeter_governance_policy_2.json) and prevents users from creating [Amazon SageMaker Notebooks Instances](https://docs.aws.amazon.com/sagemaker/latest/dg/nbi.html) that can access the internet through a VPC managed by SageMaker.
245+
For more details, see [Connect a Notebook Instance in a VPC to External Resources](https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-notebook-and-internet-access.html) in the Amazon SageMaker documentation.

service_control_policies/data_perimeter_governance_policy_2.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@
113113
}
114114
}
115115
},
116+
{
117+
"Sid": "PreventDirectInternetAccessSageMakerNotebook",
118+
"Effect": "Deny",
119+
"Action": [
120+
"sagemaker:CreateNotebookInstance"
121+
],
122+
"Resource": "*",
123+
"Condition": {
124+
"StringEquals": {
125+
"sagemaker:DirectInternetAccess": "Enabled"
126+
}
127+
}
128+
},
116129
{
117130
"Sid":"PreventNonVPCDeploymentLambda",
118131
"Effect":"Deny",

0 commit comments

Comments
 (0)