AWS Tag Editor

Search every region and every resource type from one box, select a few hundred results, and add or strip a tag on all of them in one operation. It is the tool you use after discovering your tagging scheme has holes — and the only practical way to find what's untagged.

Tìm khắp mọi region và mọi loại tài nguyên từ một ô, chọn vài trăm kết quả, rồi thêm hoặc gỡ tag cho tất cả trong một thao tác. Đây là công cụ dùng sau khi phát hiện sơ đồ tag có lỗ hổng — và là cách thực tế duy nhất để tìm ra cái chưa có tag.

Reach for it / not the right toolKhi nào dùng / khi nào không

Reach for Tag EditorChọn Tag Editor

  • A new tag key was agreed and hundreds of existing resources need it applied.Vừa chốt một tag key mới và hàng trăm tài nguyên có sẵn cần được gắn.
  • Answering "what have we got, and what's untagged?" across every region in one pass.Trả lời "mình đang có gì, và cái nào chưa có tag?" trên mọi region trong một lượt.
  • Cleaning up after a merge — someone used Env, you use Environment; find and rewrite.Dọn dẹp sau sáp nhập — bên kia dùng Env, bạn dùng Environment; tìm và viết lại.
  • An audit that needs a CSV of every resource and its tags.Một đợt audit cần file CSV mọi tài nguyên kèm tag.

Not the right toolKhông phải chỗ dùng

  • Keeping resources tagged going forward — that's an SCP, a Tag Policy or IaC defaults. Tag Editor is a one-off cleanup, not a control.Giữ cho tài nguyên luôn có tag về sau — đó là việc của SCP, Tag Policy hay giá trị mặc định trong IaC. Tag Editor là dọn dẹp một lần, không phải cơ chế kiểm soát.
  • Continuous detection of untagged resources → AWS Config required-tags, which re-evaluates on every change.Phát hiện liên tục tài nguyên thiếu tag → AWS Config required-tags, đánh giá lại mỗi khi có thay đổi.
  • Making the tags show up on your bill — you still have to activate the keys; see Cost Allocation Tags.Làm cho tag hiện trên hoá đơn — vẫn phải kích hoạt key; xem Cost Allocation Tags.
  • Resource types the tagging API doesn't support — a few services keep their own tag APIs and won't appear.Loại tài nguyên mà tagging API không hỗ trợ — vài service giữ API tag riêng và sẽ không xuất hiện.

Find → select → applyTìm → chọn → áp dụng

The console is three panes and the whole tool is that shape. The part worth remembering is that leaving the tag filter empty is the useful search — that's how untagged resources surface. Console gồm ba khung và cả công cụ chỉ có hình dạng đó. Điều đáng nhớ là để trống bộ lọc tag mới là truy vấn hữu ích — đó là cách tài nguyên chưa có tag lộ ra.

Tag Editor works in three panes. First, search criteria: regions set to all regions, resource types such as EC2 instance and EBS volume, and a tag filter left empty. Second, the results table listing resources across several regions, some already carrying a CostCenter tag and some with no tags at all. Third, the bulk action pane applying CostCenter equals 1234 to the forty-seven selected resources in a single operation. 1 · SEARCH CRITERIA Regions all regions Resource types EC2 EBS Tags — optional 2 · RESULTS resource CostCenter i-0a3f · eu-west-1 1234 vol-77c1 · eu-west-1 — none — vol-91b8 · us-east-1 — none — i-0b71 · ap-south-1 — none — 47 selected export CSV 3 · BULK ACTION Manage tags CostCenter=1234 applied to all 47 in one operation add · update · remove leaving the tag filter empty is the point — it returns everything, so the blanks are the work list the same thing, scripted: GetResources → find them (one region per call) TagResources → apply the tag (batched by ARN) UntagResources → strip a retired key

The console fans the search across regions for you. The API doesn't — a script has to loop the region list itself, which is the usual reason a home-grown tagger misses resources.

Console tự quét qua các region giúp bạn. API thì không — script phải tự lặp qua danh sách region, và đó là lý do quen thuộc khiến công cụ tự viết bỏ sót tài nguyên.

Tag Editor vs Resource GroupsTag Editor và Resource Groups

They share one console and get mixed up constantly. One edits tags; the other saves a query over them that other services can then target. Hai thứ dùng chung một console nên hay bị lẫn. Một cái sửa tag; cái kia lưu lại một truy vấn trên tag đó để các service khác nhắm vào.

Tag Editor Resource GroupResource Group
What it isLà gì a bulk editor — a one-off find-and-changemột trình sửa hàng loạt — tìm và sửa một lần a saved, living collection defined by a tag query or a CloudFormation stackmột tập hợp đã lưu và luôn cập nhật, định nghĩa bằng truy vấn tag hoặc một stack CloudFormation
MembershipThành viên whatever you selected, that one timebất cứ gì bạn chọn, ngay lần đó re-evaluated — a new resource matching the query joins automaticallyđược đánh giá lại — tài nguyên mới khớp truy vấn sẽ tự vào nhóm
What consumes itAi dùng nó nothing — it's an action, not an objectkhông ai — nó là hành động, không phải đối tượng SSM Run Command targets · CloudWatch dashboards · automation scopingtarget cho SSM Run Command · dashboard CloudWatch · giới hạn phạm vi tự động hoá
Why they're in the same consoleVì sao chúng chung một console Because one feeds the other. Tag Editor is how the tags get onto the resources; a Resource Group is what those tags then let you do — "run this command on everything tagged Environment=prod". Tag first, group second. Vì cái này nuôi cái kia. Tag Editor là cách tag lên được tài nguyên; Resource Group là thứ mà những tag đó cho phép bạn làm — "chạy lệnh này trên mọi thứ có tag Environment=prod". Gắn tag trước, gom nhóm sau.

Things that catch you outNhững chỗ dễ vấp

  • Not every resource type is supported. The tagging API covers most services but not all — a handful keep their own tag operations, and those resources simply won't appear in results. Absence in Tag Editor is not proof a resource is untagged. Không phải loại tài nguyên nào cũng được hỗ trợ. Tagging API bao phủ hầu hết service nhưng không phải tất cả — một số giữ thao tác tag riêng, và những tài nguyên đó sẽ không hiện trong kết quả. Không thấy trong Tag Editor không có nghĩa là tài nguyên đó chưa có tag.
  • Tagging is not instant. Changes can take a few minutes to be reflected in search results, and separately up to 24 hours to reach billing — see Cost Allocation Tags. Don't re-run the bulk edit because the table still looks stale. Gắn tag không tức thì. Thay đổi có thể mất vài phút mới hiện trong kết quả tìm kiếm, và riêng phía billing thì tới 24 giờ — xem Cost Allocation Tags. Đừng chạy lại thao tác hàng loạt chỉ vì bảng còn cũ.
  • Bulk edit is not transactional. A run over hundreds of resources can partially fail — permissions, an unsupported type, a per-resource tag limit. Read the result summary rather than assuming success. Sửa hàng loạt không phải giao dịch nguyên khối. Một lần chạy trên hàng trăm tài nguyên có thể lỗi một phần — quyền, loại không hỗ trợ, chạm giới hạn số tag. Hãy đọc bảng tổng kết thay vì mặc định là thành công.
  • Permissions are per service, not one blanket grant. Applying a tag to an EC2 instance needs ec2:CreateTags, to a bucket needs s3:PutBucketTagging, and so on — tag:TagResources alone is not enough. Quyền được cấp theo từng service, không phải một quyền gộp. Gắn tag cho EC2 cần ec2:CreateTags, cho bucket cần s3:PutBucketTagging, v.v. — chỉ tag:TagResources là không đủ.
  • Case still matters here. Bulk-adding Environment to resources that already carry environment leaves you with both — find the old spelling and remove it in the same pass. Ở đây hoa thường vẫn quan trọng. Thêm hàng loạt Environment lên tài nguyên vốn đã có environment sẽ để lại cả hai — hãy tìm cách viết cũ và xoá nó ngay trong cùng lượt.

Exam reflexesPhản xạ khi thi

The question says…Đề nói… AnswerTrả lời
"Tag hundreds of existing resources across multiple regions, with least effort""Gắn tag cho hàng trăm tài nguyên có sẵn qua nhiều region, ít công nhất" Tag Editor — one search, one bulk applyTag Editor — một lần tìm, một lần áp hàng loạt
"Produce a report of all resources and their tags""Xuất báo cáo mọi tài nguyên và tag" Tag Editor search → export CSV (or GetResources)Tìm bằng Tag Editor → xuất CSV (hoặc GetResources)
"Continuously flag resources missing a required tag""Liên tục đánh dấu tài nguyên thiếu tag bắt buộc" AWS Config required-tags — not Tag Editor, which is a one-offAWS Config required-tags — không phải Tag Editor, vốn chỉ chạy một lần
"Run a command on every resource tagged prod""Chạy lệnh trên mọi tài nguyên có tag prod" A Resource Group as the target — see Systems ManagerDùng Resource Group làm target — xem Systems Manager
"We bulk-tagged everything, but the bill still shows no breakdown""Đã gắn tag hàng loạt mà hoá đơn vẫn không tách" The keys were never activated — Cost Allocation TagsKey chưa được kích hoạt — Cost Allocation Tags