mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Aws session manager for linux (#1169)
* add installation aws session manager for linux * move logic to one file * change order * removed unnecessary exit * move echo line * add plugin word Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
This commit is contained in:
@@ -32,6 +32,17 @@ if ! command -v aws; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
|
||||||
|
sudo dpkg -i session-manager-plugin.deb
|
||||||
|
|
||||||
|
sessionPlugin=$(session-manager-plugin)
|
||||||
|
echo "$sessionPlugin"
|
||||||
|
if ! [[ $sessionPlugin == *"was installed successfully"* ]]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Document the installed version
|
# Document the installed version
|
||||||
echo "Document the installed version"
|
echo "Document the installed version"
|
||||||
DocumentInstalledItem "AWS CLI ($(aws --version 2>&1))"
|
DocumentInstalledItem "AWS CLI ($(aws --version 2>&1))"
|
||||||
|
DocumentInstalledItem "AWS CLI Session manager plugin ($(session-manager-plugin --version 2>&1))"
|
||||||
|
|||||||
Reference in New Issue
Block a user