| name | cis-aws-compute-3.11 |
| description | Ensure Amazon ECS clusters are tagged |
| category | cis-compute |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","compute","ecs","containers","clusters","tagging","asset-management","compliance"] |
| cis_id | 3.11 |
| cis_benchmark | CIS AWS Compute Services Benchmark v1.1.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-compute-3.10","cis-aws-compute-3.12"] |
| prerequisites | [] |
| severity_boost | {} |
Ensure Amazon ECS clusters are tagged
Description
Ensure all Amazon ECS clusters have resource tags to facilitate asset management, tracking, and compliance.
Rationale
Consistent tagging supports compliance and helps identify unauthorized or misconfigured resources.
Impact
There is minimal administrative overhead associated with implementing and maintaining resource tags.
Audit Procedure
Using AWS Console
- Login to the ECS console using https://console.aws.amazon.com/ecs/.
- In the left panel, click
Clusters.
- Click the name of a cluster.
- Click
Tags.
- Ensure at least one tag is listed that does not begin with
aws:. Tags prefixed with aws: are AWS-managed.
- Repeat steps 1-5 for each ECS cluster.
Using AWS CLI
Run the following command to list clusters:
aws ecs list-clusters
Run the following command to view the tags for a cluster:
aws ecs list-tags-for-resource --resource-arn <service-arn>
Ensure that tags are returned that do not begin with aws:. Tags prefixed with aws: are AWS-managed.
Repeat for each cluster.
Expected Result
All ECS clusters should have at least one user-defined tag (not prefixed with aws:).
Remediation
Using AWS Console
- Login to the ECS console using https://console.aws.amazon.com/ecs/.
- In the left panel, click
Clusters.
- Click the name of a cluster.
- Click
Tags.
- Click
Manage tags.
- Click
Add tag.
- Provide a
Key and optional Value for the tag.
- Click
Save.
- Repeat steps 1-8 for each ECS cluster requiring remediation.
Using AWS CLI
Use the aws ecs tag-resource command to add tags to a cluster:
aws ecs tag-resource --resource-arn <cluster-arn> --tags key=<TagKey>,value=<TagValue>
Default Value
By default, Amazon ECS clusters have only AWS-managed tags.