AWS Security ChangesHomeSearch

AWS AmazonECS documentation change

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

File: AmazonECS/latest/developerguide/working-with-templates.md

Summary

Added documentation for capacity provider templates and updated navigation headers

Security assessment

The changes introduce templates for capacity provider configuration and general documentation structure updates. No security features or vulnerabilities are mentioned in the added content.

Diff

diff --git a/AmazonECS/latest/developerguide/working-with-templates.md b/AmazonECS/latest/developerguide/working-with-templates.md
index 8853c17bf..69499ab69 100644
--- a//AmazonECS/latest/developerguide/working-with-templates.md
+++ b//AmazonECS/latest/developerguide/working-with-templates.md
@@ -5 +5 @@
-Task definitionsClustersServicesIAM roles for Amazon ECS
+Task definitionsCapacity providersClustersServicesIAM roles for Amazon ECS
@@ -18,0 +19,2 @@ The following topics list example templates for Amazon ECS task definitions, clu
+  * Capacity providers
+
@@ -544,0 +547,77 @@ YAML
+## Capacity providers
+
+Capacity providers are associated with an Amazon ECS cluster and are used to manage compute capacity for your workloads.
+
+### Create a capacity provider for Amazon ECS Managed Instances
+
+By default, Amazon ECS provides a capacity provider that automatically selects the most cost-optimized general-purpose instace types. However, you can create custom capacity providers to specify instance requirements such as instance types, CPU manufacturers, accelerator types, and other requirements. You can use the following template to create a capacity provider for Amazon ECS Managed Instances that satisfies the specied memory and CPU requirements.
+
+JSON
+    
+    
+    
+    {
+        "AWSTemplateFormatVersion": "2010-09-09",
+        "Resources": {
+            "MyCapacityProvider": {
+                "Type": "AWS::ECS::CapacityProvider",
+                "Properties": {
+                    "ManagedInstancesProvider": {
+                        "InfrastructureRoleArn": "arn:aws:iam::123456789012:role/ECSInfrastructureRole",
+                        "InstanceLaunchTemplate": {
+                            "Ec2InstanceProfileArn": "arn:aws:iam::123456789012:instance-profile/ecsInstanceProfile",
+                            "NetworkConfiguration": null,
+                            "Subnets": [
+                                "subnet-12345678"
+                            ],
+                            "SecurityGroups": [
+                                "sg-87654321"
+                            ]
+                        },
+                        "StorageConfiguration": {
+                            "StorageSizeGiB": 30
+                        },
+                        "InstanceRequirements": {
+                            "VCpuCount": {
+                                "Min": 1,
+                                "Max": 4
+                            },
+                            "MemoryMiB": {
+                                "Min": 2048,
+                                "Max": 8192
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    }
+
+YAML
+    
+    
+    
+    AWSTemplateFormatVersion: 2010-09-09
+    Resources:
+      MyCapacityProvider:
+        Type: AWS::ECS::CapacityProvider
+        Properties:
+          ManagedInstancesProvider:
+            InfrastructureRoleArn: "arn:aws:iam::123456789012:role/ECSInfrastructureRole"
+            InstanceLaunchTemplate:
+              Ec2InstanceProfileArn: "arn:aws:iam::123456789012:instance-profile/ecsInstanceProfile"
+              NetworkConfiguration:
+              Subnets:
+                - "subnet-12345678"
+              SecurityGroups:
+                - "sg-87654321"
+            StorageConfiguration:
+              StorageSizeGiB: 30
+            InstanceRequirements:
+              VCpuCount:
+                Min: 1
+                Max: 4
+              MemoryMiB:
+                Min: 2048
+                Max: 8192
+