1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
Hello.
I thought it would be better to use SSM RunCommand instead of using Session Manager in this case.
https://docs.aws.amazon.com/systems-manager/latest/userguide/run-command.html
If PowerShell is the target, I think it can be executed with AWS CLI using "AWS-RunPowerShellScript" as shown below.
aws ssm send-command --document-name "AWS-RunPowerShellScript" --document-version "1" --targets "Key=instanceids,Values=$instanceId" --parameters '{"commands":["Get-FileHash -Path $filePath -Algorithm SHA256"]}'
関連するコンテンツ
- 質問済み 3年前
- AWS公式更新しました 3年前
- AWS公式更新しました 1年前
- AWS公式更新しました 10ヶ月前