diff --git a/images/win/Windows2016-Azure.json b/images/win/Windows2016-Azure.json index e0bf37f50..2f304145d 100644 --- a/images/win/Windows2016-Azure.json +++ b/images/win/Windows2016-Azure.json @@ -445,6 +445,12 @@ "{{ template_dir }}/scripts/Installers/Install-Cmake.ps1" ] }, + { + "type": "powershell", + "scripts":[ + "{{ template_dir }}/scripts/Installers/Install-AWS.ps1" + ] + }, { "type": "powershell", "scripts":[ diff --git a/images/win/Windows2019-Azure.json b/images/win/Windows2019-Azure.json index c93f79e75..9d197301a 100644 --- a/images/win/Windows2019-Azure.json +++ b/images/win/Windows2019-Azure.json @@ -426,6 +426,12 @@ "{{ template_dir }}/scripts/Installers/Install-Cmake.ps1" ] }, + { + "type": "powershell", + "scripts":[ + "{{ template_dir }}/scripts/Installers/Install-AWS.ps1" + ] + }, { "type": "powershell", "scripts":[ diff --git a/images/win/scripts/Installers/Install-AWS.ps1 b/images/win/scripts/Installers/Install-AWS.ps1 new file mode 100644 index 000000000..124f32d20 --- /dev/null +++ b/images/win/scripts/Installers/Install-AWS.ps1 @@ -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
+"@ + +Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description \ No newline at end of file