mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
31 lines
734 B
PowerShell
31 lines
734 B
PowerShell
################################################################################
|
|
## File: Install-awscli.ps1
|
|
## Desc: Install awscli
|
|
################################################################################
|
|
|
|
Choco-Install -PackageName awscli
|
|
|
|
$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 |