AWSSupport-TroubleshootCFNCustomResource - AWS Systems Manager 自動化手冊參考

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

AWSSupport-TroubleshootCFNCustomResource

Description (描述)

AWSSupport-TroubleshootCFNCustomResourcerunbook 有助於診斷為什麼AWS CloudFormation堆疊在建立、更新或刪除自訂資源失敗。runbook 會檢查用於自訂資源的服務 Token,以及傳回的錯誤訊息。檢閱自訂資源的詳細資料之後,runbook 輸出會提供堆疊行為的說明,以及自訂資源的疑難排解步驟。

運行此自動化(控制台)

文件類型

 自動化

擁有者

Amazon

平台

Linux,macOS, Windows

參數

  • AutomationAssumeRole

    類型:字串

    說明:(選用) 允許系統管理員自動化代表您執行動作的 AWS Identity and Access Management (IAM) 角色的 Amazon 資源名稱 (ARN)。如果未指定角色,系統管理員自動化會使用啟動此 runbook 的使用者的權限。

  • StackName

    類型:字串

    描述:(必要) 自訂資源失敗的AWS CloudFormation堆疊名稱。

必要的 IAM 許可

AutomationAssumeRole參數需要下列動作才能成功使用 runbook。

  • cloudformation:DescribeStacks

  • cloudformation:DescribeStackEvents

  • cloudformation:ListStackResources

  • ec2:DescribeRouteTables

  • ec2:DescribeNatGateways

  • ec2:DescribeSecurityGroups

  • ec2:DescribeVpcs

  • ec2:DescribeVpcEndpoints

  • ec2:DescribeSubnets

  • logs:FilterLogEvents

文件步驟

  • validateCloudFormationStack-驗證AWS CloudFormation堆疊是否存在於相同的AWS 帳戶和AWS 區域。

  • checkCustomResource-分析AWS CloudFormation堆疊、檢查失敗的自訂資源,並輸出有關如何疑難排解失敗的自訂資源的資訊。