Add awscli (#610)

* 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>
This commit is contained in:
Dibir Magomedsaygitov
2020-03-30 11:09:02 +03:00
committed by GitHub
parent 763f20b38c
commit b8ac95cd81
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
################################################################################
## 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