mirror of
https://github.com/actions/runner-images.git
synced 2026-01-01 23:23:56 +08:00
Add aws session manager windows (#1178)
* add installation aws session manager for windows * move to one file * remove script step * add documentation * move logic to one file * add notmatch * change setup path variable Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
This commit is contained in:
@@ -15,3 +15,14 @@ else
|
||||
Write-Host 'awscli is not on path'
|
||||
exit 1
|
||||
}
|
||||
|
||||
$sessionManagerName = "SessionManagerPluginSetup.exe"
|
||||
$sessionManagerUrl = "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/windows/$sessionManagerName"
|
||||
Install-Binary -Url $sessionManagerUrl -Name $sessionManagerName -ArgumentList ("/silent", "/install")
|
||||
$env:Path = $env:Path + ";$env:ProgramFiles\Amazon\SessionManagerPlugin\bin"
|
||||
|
||||
$sessionMessage = session-manager-plugin
|
||||
Write-Host "$sessionMessage"
|
||||
if ($sessionMessage -notmatch "*plugin was installed successfully*") {
|
||||
exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user