# Ensure Amazon ECS Services are Tagged

- Source: https://support.icompaas.com/support/solutions/articles/62000234084-ensure-amazon-ecs-services-are-tagged
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [CIS AWS Compute Services Benchmark v1.1.0](https://support.icompaas.com/support/solutions/62000112682) › [AWS Compute Services Benchmark v1.1.0](https://support.icompaas.com/support/solutions/folders/62000169228)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

**Profile Applicability:**  

-   **Level 1**

**Description:** Ensure all Amazon ECS services have resource tags to facilitate asset management, tracking, and compliance.

**Rationale:** Consistent tagging supports compliance and helps identify unauthorized or misconfigured resources. Tags provide visibility into resources and their purposes, making it easier to manage, track, and enforce policies.

**Impact:**

**Pros:**

-   Enhances organization, resource visibility, and management.  
    
-   Supports compliance and security tracking.  
    
-   Improves policy enforcement and auditing.  
    

**Cons:**

-   Requires time to define a clear tagging policy.  
    
-   Tags must be maintained across all resources and environments.  
    

**Default Value:** By default, Amazon ECS services are not tagged.

**Pre-requisites:** 1. AWS IAM permissions:

-   ecs:TagResource  
    
-   ecs:ListTagsForResource  
    
-   ecs:DescribeServices  
    

2\. Tagging policy and strategy defined by the organization.

**Remediation**

**Test Plan:**

**Using AWS Console:**

1.  Log in to the ECS Console at AWS ECS Console.  
    
2.  In the left panel, click Clusters.  
    
3.  Click the name of a cluster.  
    
4.  Under Services, click the name of a service.  
    
5.  Click Tags.  
    
6.  Ensure at least one tag is listed that does not begin with aws:. Tags prefixed with aws: are AWS-managed.  
    
7.  Repeat steps 1–6 for each ECS cluster and service.  
    

**Using AWS CLI:**

1.  Run the following command to list clusters:  
    
     aws ecs list-clusters
    
      
    
2.  Run the following command to list services in a cluster:  
    
     aws ecs list-services --cluster <cluster-arn>
    
      
    
3.  Run the following command to view the tags for a service:
    
    aws ecs list-tags-for-resource --resource-arn <service-arn>
    
      
    
4.  Ensure that tags are returned that do not begin with aws:. Tags prefixed with aws: are AWS-managed.  
    
5.  Repeat for each cluster and service.  
      
    

**Implementation Plan:**

**Using AWS Console:**

1.  Log in to the ECS Console at AWS ECS Console.  
    
2.  In the left panel, click Clusters.  
    
3.  Click the name of a cluster.  
    
4.  Under Services, click the name of a service.  
    
5.  Click Tags.  
    
6.  Click Manage tags.  
    
7.  Click Add tag.  
    
8.  Provide a Key and an optional Value for the tag.  
    
9.  Click Save.  
    
10.  Repeat steps 1–9 for each ECS cluster and service requiring remediation.  
     

**Using AWS CLI:**

1.  For each service requiring remediation, run the following command to add tags:  
    
     aws ecs tag-resource --resource-arn <service-arn> --tags Key=<tag-key>,Value=<tag-value>
    
      
    

**Backout Plan:**

**Using AWS Console:**

1.  If any issue arises after tagging, you can remove or modify tags by following the same process but selecting the Delete option for tags.  
      
    

**Using AWS CLI:**

1.  To remove tags, run the following command:  
    
     aws ecs untag-resource --resource-arn <service-arn> --tag-keys <tag-key>
    

### **References:**

1.  [Amazon ECS Tagging Guide  
    ](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-usingtags.html)
    
2.  [AWS CLI: List ECS Clusters](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/listclusters.html)
    
3.  [AWS CLI: List ECS Services](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/listservices.html)
    
4.  [AWS CLI: List Tags for ECS Resource](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/listtags-for-resource.html)
    

### **CIS Controls:**

<table style="border:none;border-collapse:collapse;font-family:&quot;Helvetica Neue&quot;"><tbody style="font-family:&quot;Helvetica Neue&quot;"><tr style="height:38.5pt;font-family:&quot;Helvetica Neue&quot;"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Version</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Control ID</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Control Description</span></span></span></p></td></tr><tr style="height:64.75pt;font-family:&quot;Helvetica Neue&quot;"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">v8</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">1.1</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Establish and Maintain Detailed Enterprise Asset Inventory: Establish and maintain an accurate, detailed, and up-to-date inventory of all enterprise assets, including those in cloud environments, and ensure the inventory includes asset attributes and approval status.</span></span></span></p></td></tr><tr style="height:51.25pt;font-family:&quot;Helvetica Neue&quot;"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">v7</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">1.4</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Maintain Detailed Asset Inventory: Maintain an accurate and up-to-date inventory of all technology assets, including those connected to the network or not, for better management and compliance.</span></span></span></p></td></tr></tbody></table>

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
