mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
* uppdate/add awscli * change awscli to aws and fix for aws version * concatenate install and validate script files * update image templates * add aws to the path Co-authored-by: Dibir Magomedsaygitov <v-dimago@microsoft.com>
31 lines
724 B
PowerShell
31 lines
724 B
PowerShell
################################################################################
|
|
## File: Install-awscli.ps1
|
|
## Desc: Install awscli
|
|
################################################################################
|
|
|
|
choco install awscli -y
|
|
|
|
$env:PATH =$env:PATH + ";$Env:Programfiles\Amazon\AWSCLIV2"
|
|
|
|
$command = Get-Command -Name 'aws'
|
|
|
|
if ($command)
|
|
{
|
|
Write-Host "awscli on path"
|
|
}
|
|
else
|
|
{
|
|
Write-Host 'awscli is not on path'
|
|
exit 1
|
|
}
|
|
|
|
# Adding description of the software to Markdown
|
|
$SoftwareName = "AWS CLI"
|
|
|
|
$version = (aws --version).Split(" ")[0].Replace("/"," ")
|
|
|
|
$Description = @"
|
|
_Version:_ $version<br/>
|
|
"@
|
|
|
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description |