AWS Security ChangesHomeSearch

AWS AmazonECS documentation change

Service: AmazonECS · 2025-10-01 · Documentation low

File: AmazonECS/latest/developerguide/ecs-gpu-specifying.md

Summary

Added detailed task definition example for TensorFlow GPU container and updated instance launch wording

Security assessment

The changes provide a usage example for GPU resource allocation and clarify instance types, but contain no security-specific content or vulnerability fixes.

Diff

diff --git a/AmazonECS/latest/developerguide/ecs-gpu-specifying.md b/AmazonECS/latest/developerguide/ecs-gpu-specifying.md
index 068bb47c7..02138f2be 100644
--- a//AmazonECS/latest/developerguide/ecs-gpu-specifying.md
+++ b//AmazonECS/latest/developerguide/ecs-gpu-specifying.md
@@ -55,0 +56,40 @@ The following example demonstrates the syntax for a Docker container that specif
+The following example task definition shows a TensorFlow container that prints the number of available GPUs. The task runs on Amazon ECS Managed Instances, requires one GPU, and uses a `g4dn.xlarge` instance.
+    
+    
+    {
+      "family": "tensorflow-gpu",
+      "networkMode": "awsvpc",
+      "executionRoleArn": "arn:aws:iam::account-id:role/ecsTaskExecutionRole",
+      "containerDefinitions": [
+        {
+          "name": "tensorflow",
+          "image": "tensorflow/tensorflow:latest-gpu",
+          "essential": true,
+          "command": [
+            "python",
+            "-c",
+            "import tensorflow as tf; print('Num GPUs Available: ', len(tf.config.list_physical_devices('GPU')))"
+          ],
+          "resourceRequirements": [
+            {
+              "type": "GPU",
+              "value": "1"
+            }
+          ],
+          "logConfiguration": {
+            "logDriver": "awslogs",
+            "options": {
+              "awslogs-group": "/ecs/tensorflow-gpu",
+              "awslogs-region": "region",
+              "awslogs-stream-prefix": "ecs"
+            }
+          }
+        }
+      ],
+      "requiresCompatibilities": [
+        "MANAGED_INSTANCES"
+      ],
+      "cpu": "4096",
+      "memory": "8192",
+    }
+
@@ -62 +102 @@ To use the Amazon Web Services Documentation, Javascript must be enabled. Please
-Launch a GPU container instance
+Launch a GPU container instance for Amazon ECS on Amazon EC2