AWS Security ChangesHomeSearch

AWS machine-learning high security documentation change

Service: machine-learning · 2025-10-25 · Security-related high

File: machine-learning/latest/dg/granting-amazon-ml-permissions-to-read-your-data-from-amazon-s3.md

Summary

Corrected IAM policy structure and added source validation constraints for S3 read access

Security assessment

Enhanced policy demonstrates proper cross-account protection using source attributes, reducing risk of unintended data exposure through overly permissive S3 policies.

Diff

diff --git a/machine-learning/latest/dg/granting-amazon-ml-permissions-to-read-your-data-from-amazon-s3.md b/machine-learning/latest/dg/granting-amazon-ml-permissions-to-read-your-data-from-amazon-s3.md
index 1f01b893a..a45ba4d6e 100644
--- a//machine-learning/latest/dg/granting-amazon-ml-permissions-to-read-your-data-from-amazon-s3.md
+++ b//machine-learning/latest/dg/granting-amazon-ml-permissions-to-read-your-data-from-amazon-s3.md
@@ -19,0 +20,6 @@ If you use the Amazon ML console to create the datasource, these permissions can
+JSON
+    
+
+****
+    
+    
@@ -22 +28 @@ If you use the Amazon ML console to create the datasource, these permissions can
-        "Version": "2008-10-17",
+        "Version":"2012-10-17",		 	 	 
@@ -26 +32,3 @@ If you use the Amazon ML console to create the datasource, these permissions can
-            "Principal": { "Service": "machinelearning.amazonaws.com" },
+                "Principal": {
+                    "Service": "machinelearning.amazonaws.com"
+                },
@@ -28 +36 @@ If you use the Amazon ML console to create the datasource, these permissions can
-            "Resource": "arn:aws:s3:::examplebucket/exampleprefix/*"
+                "Resource": "arn:aws:s3:::examplebucket/exampleprefix/*",
@@ -30,2 +38,6 @@ If you use the Amazon ML console to create the datasource, these permissions can
-                "StringEquals": { "aws:SourceAccount": "123456789012" }
-                "ArnLike": { "aws:SourceArn": "arn:aws:machinelearning:us-east-1:123456789012:*" } 
+                    "StringEquals": {
+                        "aws:SourceAccount": "123456789012"
+                    },
+                    "ArnLike": {
+                        "aws:SourceArn": "arn:aws:machinelearning:us-east-1:123456789012:*"
+                    }
@@ -36 +48,3 @@ If you use the Amazon ML console to create the datasource, these permissions can
-            "Principal": {"Service": "machinelearning.amazonaws.com"},
+                "Principal": {
+                    "Service": "machinelearning.amazonaws.com"
+                },
@@ -40,3 +54,8 @@ If you use the Amazon ML console to create the datasource, these permissions can
-                "StringLike": { "s3:prefix": "exampleprefix/*" }
-                "StringEquals": { "aws:SourceAccount": "123456789012" }
-                "ArnLike": { "aws:SourceArn": "arn:aws:machinelearning:us-east-1:123456789012:*" }
+                    "StringLike": {
+                        "s3:prefix": "exampleprefix/*"
+                    },
+                    "StringEquals": {
+                        "aws:SourceAccount": "123456789012"
+                    },
+                    "ArnLike": {
+                        "aws:SourceArn": "arn:aws:machinelearning:us-east-1:123456789012:*"
@@ -44 +62,0 @@ If you use the Amazon ML console to create the datasource, these permissions can
-        }]
@@ -45,0 +64,4 @@ If you use the Amazon ML console to create the datasource, these permissions can
+            }
+        ]
+    }
+