AWS AWSCloudFormation documentation change
Summary
Removed all example configurations for cluster capacity provider associations including Auto Scaling group and Fargate implementations
Security assessment
The removal of example templates doesn't directly indicate a security issue. While the deleted examples contained security-relevant configurations (like IAM roles and ASG settings), there's no evidence in the diff that these examples were removed due to a specific vulnerability. This appears to be general documentation cleanup rather than security-related remediation.
Diff
diff --git a/AWSCloudFormation/latest/TemplateReference/aws-resource-ecs-clustercapacityproviderassociations.md b/AWSCloudFormation/latest/TemplateReference/aws-resource-ecs-clustercapacityproviderassociations.md index c0f9bbdd9..b01a8f44f 100644 --- a//AWSCloudFormation/latest/TemplateReference/aws-resource-ecs-clustercapacityproviderassociations.md +++ b//AWSCloudFormation/latest/TemplateReference/aws-resource-ecs-clustercapacityproviderassociations.md @@ -3 +3 @@ -SyntaxPropertiesReturn valuesExamples +SyntaxPropertiesReturn values @@ -85,502 +84,0 @@ When you pass the logical ID of this resource to the intrinsic `Ref` function, ` -## Examples - -###### - - * Creating a cluster capacity provider association using an Auto Scaling group capacity provider - - * Creating a cluster capacity provider association using a Fargate capacity provider. - - * Creating a cluster capacity provider association and Auto Scaling group capacity provider. - - - - -### Creating a cluster capacity provider association using an Auto Scaling group capacity provider - -The following example creates a cluster, two Auto Scaling group capacity providers, and the cluster capacity provider association that facilitates the association between them. The Auto Scaling groups the capacity providers use must already be created and the Amazon Resource Name (ARN) of each Auto Scaling group must be specified as parameters. - -#### JSON - - - { - >>>>>>> mainline - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "AutoScalingGroupArn1": { - "Type": "String" - }, - "AutoScalingGroupArn2": { - "Type": "String" - } - }, - "Resources": { - "CapacityProvider1": { - "Type": "AWS::ECS::CapacityProvider", - "Properties": { - "AutoScalingGroupProvider": { - "AutoScalingGroupArn": { - "Ref": "AutoScalingGroupArn1" - }, - "ManagedScaling": { - "Status": "ENABLED" - }, - "ManagedTerminationProtection": "DISABLED" - } - } - }, - "CapacityProvider2": { - "Type": "AWS::ECS::CapacityProvider", - "Properties": { - "AutoScalingGroupProvider": { - "AutoScalingGroupArn": { - "Ref": "AutoScalingGroupArn2" - }, - "ManagedScaling": { - "Status": "ENABLED" - }, - "ManagedTerminationProtection": "DISABLED" - } - } - }, - "Cluster": { - "Type": "AWS::ECS::Cluster" - }, - "ClusterCPAssociation": { - "Type": "AWS::ECS::ClusterCapacityProviderAssociations", - "Properties": { - "Cluster": { - "Ref": "Cluster" - }, - "CapacityProviders": [ - { - "Ref": "CapacityProvider1" - }, - { - "Ref": "CapacityProvider2" - } - ], - "DefaultCapacityProviderStrategy": [ - { - "Base": 2, - "Weight": 6, - "CapacityProvider": { - "Ref": "CapacityProvider1" - } - }, - { - "Base": 0, - "Weight": 10, - "CapacityProvider": { - "Ref": "CapacityProvider2" - } - } - ] - } - } - } - } - -#### YAML - - - AWSTemplateFormatVersion: 2010-09-09 - Parameters: - AutoScalingGroupArn1: - Type: String - AutoScalingGroupArn2: - Type: String - Resources: - CapacityProvider1: - Type: "AWS::ECS::CapacityProvider" - Properties: - AutoScalingGroupProvider: - AutoScalingGroupArn: !Ref AutoScalingGroupArn1 - ManagedScaling: - Status: ENABLED - ManagedTerminationProtection: DISABLED - CapacityProvider2: - Type: "AWS::ECS::CapacityProvider" - Properties: - AutoScalingGroupProvider: - AutoScalingGroupArn: !Ref AutoScalingGroupArn2 - ManagedScaling: - Status: ENABLED - ManagedTerminationProtection: DISABLED - Cluster: - Type: 'AWS::ECS::Cluster' - ClusterCPAssociation: - Type: "AWS::ECS::ClusterCapacityProviderAssociations" - Properties: - Cluster: !Ref Cluster - CapacityProviders: - - !Ref CapacityProvider1 - - !Ref CapacityProvider2 - DefaultCapacityProviderStrategy: - - Base: 2 - Weight: 6 - CapacityProvider: !Ref CapacityProvider1 - - Base: 0 - Weight: 10 - CapacityProvider: !Ref CapacityProvider2 - -### Creating a cluster capacity provider association using a Fargate capacity provider. - -The following example associates the `FARGATE` and `FARGATE_SPOT` capacity providers to an existing cluster. The cluster name must be specified as a parameter. - -#### JSON - - - { - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "ClusterName": { - "Type": "String" - } - }, - "Resources": { - "ClusterCPAssociation": { - "Type": "AWS::ECS::ClusterCapacityProviderAssociations", - "Properties": { - "Cluster": { - "Ref": "ClusterName" - }, - "CapacityProviders": [ - "FARGATE", - "FARGATE_SPOT" - ], - "DefaultCapacityProviderStrategy": [ - { - "Base": 2, - "Weight": 1, - "CapacityProvider": "FARGATE" - }, - { - "Base": 0, - "Weight": 1, - "CapacityProvider": "FARGATE_SPOT" - } - ] - } - } - } - } - -#### YAML - - - AWSTemplateFormatVersion: 2010-09-09 - Parameters: - ClusterName: - Type: String - Resources: - ClusterCPAssociation: