【发布时间】:2022-11-02 10:53:41
【问题描述】:
我正在尝试使用 SSM 运行命令来运行“echo 'hello world'”(以测试与 Windows 应用程序服务器的通信,然后运行更详细的 powershell 脚本)但我注意到该命令在某些实例中失败并在另一个实例中成功那些。问题是该命令实际上并没有完全失败,而是详细状态显示“终止”。任何想法可能是什么原因?
---
schemaVersion: "2.2"
description: "Command Document Example JSON Template"
parameters:
Message:
type: "String"
description: "Example"
default: "Hello World"
mainSteps:
- action: "aws:runPowerShellScript"
name: "example"
inputs:
runCommand:
- "echo {{Message}}"
【问题讨论】:
-
SSM 命令日志说什么?
-
它什么也没说,输出和错误返回 0。
标签: amazon-web-services powershell aws-ssm