View a markdown version of this page

使用 Resource Tagger 加速標籤 - AMS Accelerate 使用者指南

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

使用 Resource Tagger 加速標籤

標籤型警示管理員會管理每個資源 CloudWatch 警示的生命週期;不過,它需要受管資源具有 AMS Accelerate 定義的特定標籤。若要使用 Resource Tagger 將預設的 AMS 受管警示集套用至 Linux 和 Windows 型執行個體,請遵循下列步驟。

  1. 瀏覽至您帳戶中的 AppConfig 主控台。

  2. 選取 ResourceTagger 應用程式。

  3. 選取組態設定檔索引標籤,然後選取 CustomerManagedTags

  4. 按一下建立以建立新的設定檔。

  5. 選取 JSON 並定義您的組態。如需篩選條件和平台定義的更多範例,請參閱 加速資源交錯

    { "AWS::EC2::Instance": { "MonitorAllInstances": { "Enabled": true, "Filter": { "Platform": "*" }, "Tags": [ { "Key": "ams:rt:ams-managed", "Value": "true" } ] } } }
  6. 按一下建立託管組態版本

  7. 按一下開始部署

  8. 定義下列部署詳細資訊:

    Environment: AMSInfrastructure Hosted configuration version: <Select the version that you have just created> Deployment Strategy: AMSNoBakeDeployment
  9. 按一下開始部署

您的執行個體會加上 標記"ams:rt:ams-managed": "true",以確保將額外的 "ams:rt:ams-monitoring-policy": "ams-monitored""ams:rt:ams-monitoring-policy-platform": "ams-monitored-linux" 套用至執行個體。然後,這些標籤會導致為執行個體建立適當的警示。如需此程序的詳細資訊,請參閱在 Accelerate 中監控