AWS ECS Fargate 需要 Tag 標籤(工作日常)

2023/10/07閱讀時間約 1 分鐘


由於客戶需要透過  Cost Explorer 來監控 ECS Fargate tasks 成本,ECS 設置需要的 Tag 標籤, AWS Billing (Cost allocation tags)啟用 Tag 後,還是沒出現。


原因是,ECS Cluster 本生沒有產生費用,故才未顯示,需要開起 "Propagate tags" 這樣 tasks 才會帶上 Tag 標籤。


跟改設定流程

  1. 先不要刪除原本 Services
  2. Create new task definition 增加需要的 Tags
  3. Create 新 Service,把最底下 Tags > Propagate tags from 選 Task definitions or Service
raw-image
raw-image


  1. 確定沒問題再把原本 Services 刪除
13會員
57內容數
留言0
查看全部
發表第一個留言支持創作者!