AWS Security ChangesHomeSearch

AWS AmazonECS documentation change

Service: AmazonECS · 2026-04-01 · Documentation low

File: AmazonECS/latest/developerguide/ManagedInstances.md

Summary

Added a new 'Local Storage' section detailing how to configure Amazon ECS Managed Instances to use EC2 instance store volumes as a data volume for tasks, including configuration examples and considerations.

Security assessment

The change adds documentation for a new feature (using instance store) and its operational characteristics (ephemeral storage, data loss on instance stop/termination). It does not address a specific security vulnerability, weakness, or incident. While it mentions data persistence risks, this is a standard feature description, not security documentation.

Diff

diff --git a/AmazonECS/latest/developerguide/ManagedInstances.md b/AmazonECS/latest/developerguide/ManagedInstances.md
index b540bdd2d..e9a3e2758 100644
--- a//AmazonECS/latest/developerguide/ManagedInstances.md
+++ b//AmazonECS/latest/developerguide/ManagedInstances.md
@@ -5 +5 @@
-Getting startedCapacity providersInstance selection and optimizationTask definitionsOperating system and CPU architectureKey featuresIAM rolesSecurity and complianceNetworkingInstance storageService load balancingMonitoring and observabilityPricing and cost optimizationService quotasMigration considerationsLimitations and considerationsOrganization controls
+Getting startedCapacity providersInstance selection and optimizationTask definitionsOperating system and CPU architectureKey featuresIAM rolesSecurity and complianceNetworkingInstance storageLocal StorageService load balancingMonitoring and observabilityPricing and cost optimizationService quotasMigration considerationsLimitations and considerationsOrganization controls
@@ -193,0 +194,49 @@ In addition to using the data volume attached to the instance, you can also conf
+## Local Storage
+
+[Amazon EC2 instance store](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) provides temporary block-level storage for your Amazon EC2 instances. The storage provided by Amazon EC2 instance store is accessible through disks that are physically attached to the hosts. You can configure Amazon ECS Managed Instances to use instance store as a data volume for tasks running on the container instance. When you enable local storage and the instance has instance store volumes, Amazon ECS uses the instance store volumes instead of provisioning an Amazon EBS data volume. This can reduce storage costs and improve I/O performance for latency-sensitive workloads. There is no additional charge for using instance store volumes with Amazon ECS Managed Instances.
+
+When an instance has multiple instance store volumes, Amazon ECS automatically combines them into a single RAID 0 volume and presents it as contiguous storage for tasks. When an instance doesn't have instance store volumes, or when local storage is disabled, Amazon ECS provisions an Amazon EBS data volume with the size specified in `storageSizeGiB`. Instance store volumes are ephemeral. Data on instance store volumes is lost when the instance is stopped, terminated, or when hardware fails. Do not use instance store for data that must persist.
+
+To enable local storage, [create a new capacity provider](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/create-capacity-provider-managed-instances.html) with the `localStorageConfiguration` parameter and set `useLocalStorage` to `true`. You can also use the `instanceRequirements` parameter to ensure that provisioned instances include local storage of a specific size. The default `FARGATE_MANAGED_INSTANCE` capacity provider that is used when you create a cluster for Amazon ECS Managed Instances doesn't include `localStorageConfiguration`.
+
+The following example shows a capacity provider configuration with local storage enabled and instance requirements that specify SSD-based instance store with a minimum of 50 GiB.
+    
+    
+    {
+    ...
+        "managedInstancesProvider": {
+            "infrastructureRoleArn": "arn:aws:iam::123456789012:role/ecsInfrastructureRole",
+            "instanceLaunchTemplate": {
+                "ec2InstanceProfileArn": "arn:aws:iam::123456789012:instance-profile/ecsInstanceProfile",
+                "networkConfiguration": {
+                    "subnets": [
+                        "subnet-abcdef01234567",
+                        "subnet-bcdefa98765432"
+                    ],
+                    "securityGroups": [
+                        "sg-0123456789abcdef"
+                    ]
+                },
+                "storageConfiguration": {
+                    "storageSizeGiB": 50
+                },
+                "localStorageConfiguration": {
+                    "useLocalStorage": true
+                },
+                "instanceRequirements": {
+                    "localStorage": "REQUIRED",
+                    "totalLocalStorageGB": {
+                        "Min": 50
+                    },
+                    "localStorageTypes": ["ssd"]
+                }
+            }
+        }
+    }
+
+When you omit the `instanceRequirements` configuration, Amazon ECS defaults `localStorage` to `INCLUDED`. In this case, Amazon ECS considers instances both with and without instance store volumes for provisioning. Instances with instance store volumes use an instance store for data volume, while instances without instance store volumes use an Amazon EBS data volume. When `totalLocalStorageGB` is not specified, Amazon ECS uses all available instance storage, with no minimum size enforced.
+
+The `storageSizeGiB` value in `storageConfiguration` defines only the Amazon EBS data volume size and is used when instance storage is unavailable. The `totalLocalStorageGB` value in `instanceRequirements` controls the minimum instance storage size required on provisioned instances. To guarantee that all instances use local storage, set `localStorage` to `REQUIRED` and specify a minimum size by using `totalLocalStorageGB`.
+
+To verify whether a specific provisioned container instance is using local storage, check for the `ecs.capability.storage.local-storage-enabled` attribute on the container instance.
+