AWSSupport-TroubleshootSUSERegistration - AWS Systems Manager 自动化运行手册参考

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

AWSSupport-TroubleshootSUSERegistration

描述

AWSSupport-TroubleshootSUSERegistration 运行手册可帮助您查明向 SUSE Update Infrastructure 注册 Amazon Elastic Compute Cloud (Amazon EC2) SUSE Linux Enterprise Server 实例失败的原因。此自动化输出提供了解决问题或帮助您排查问题的步骤。如果实例在自动化期间通过了所有检查,该实例将注册到 SUSE Update Infrastructure。

运行此自动化(控制台)

文档类型

自动化

所有者

Amazon

平台

Linux

参数

  • AutomationAssumeRole

    类型:字符串

    描述:(可选)允许 Systems Manager Automation 代表您执行操作 AWS Identity and Access Management (IAM) 角色的 Amazon 资源名称(ARN)。如果未指定任何角色,则 Systems Manager Automation 使用启动此运行手册的用户的权限。

  • InstanceId

    类型:字符串

    描述:(必需)需要排除故障的 Amazon EC2 实例 ID。

所需的 IAM 权限

AutomationAssumeRole 参数需要执行以下操作才能成功使用运行手册。

  • ssm:StartAutomationExecution

  • ssm:DescribeInstanceProperties

  • ssm:DescribeInstanceInformation

  • ssm:ListCommandInvocations

  • ssm:SendCommand

  • ssm:ListCommands

文档步骤

  • aws:assertAwsResourceProperty - 检查 Amazon EC2 实例是否由 AWS Systems Manager 管理。

  • aws:runCommand - 检查 Amazon EC2 实例平台是否由 SLES 管理。

  • aws:runCommand - 检查软件包 cloud-regionsrv-client 版本是否高于或等于所需的版本 9.0.10。

  • aws:runCommand - 检查基础产品的符号链接是否损坏,并在链接损坏时修复链接。

  • aws:runCommand - 检查主机文件 (/etc/hosts) 是否包含 smt-ec2-suscloud.net 的记录。自动化将删除所有重复的条目。

  • aws:runCommand - 检查 curl 命令是否已安装。

  • aws:runCommand - 检查 Amazon EC2 实例是否能访问实例元数据服务(IMDS)地址 169.254.169.254。

  • aws:runCommand - 检查 Amazon EC2 实例是否有账单代码或 AWS Marketplace 产品代码。

  • aws:runCommand - 检查 Amazon EC2 实例是否可以通过 HTTPS 到达至少 1 个区域服务器。

  • aws:runCommand - 检查 Amazon EC2 实例是否可以通过 HTTP 到达订阅管理工具 (SMT) 服务器。

  • aws:runCommand - 检查 Amazon EC2 实例是否可以通过 HTTPS 到达订阅管理工具 (SMT) 服务器。

  • aws:runCommand - 检查 Amazon EC2 实例是否可以通过 HTTPS 到达 smt-ec2.susecloud.net 地址。

  • aws:runCommand - 向 SUSE Update Infrastructure 注册 Amazon EC2 实例。

  • aws:executeScript - 收集并输出所有先前步骤的输出。