1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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"]}'
Contenus pertinents
- demandé il y a un an
- demandé il y a 5 mois
- demandé il y a 4 mois
- demandé il y a 10 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 ans