mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
* first part * fix session manager plugin * rework AWS installation * azure cosmos db tests * azure devops cli * add azmodules test * put brackets * add root folder * remove validate aliyun * add azure modules * update modules test * docker, baze, dotnetsdk * DACFx * add azdevopscli * change to Should -BeTrue * nitpicks * remove extra * add azurecli * remove BeforeAll for DACFx * a bit of refactoring * fix templates * remove disk space validation * rename to powershell modules * fix templates
18 lines
949 B
PowerShell
18 lines
949 B
PowerShell
################################################################################
|
|
## File: Install-AWS.ps1
|
|
## Desc: Install AWS tools(AWS CLI, Session Manager Plugin for the AWS CLI, AWS SAM CLI)
|
|
################################################################################
|
|
|
|
# Install AWS CLI
|
|
Choco-Install -PackageName awscli
|
|
|
|
# Install Session Manager Plugin for the AWS CLI
|
|
$sessionManagerName = "SessionManagerPluginSetup.exe"
|
|
$sessionManagerUrl = "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/windows/$sessionManagerName"
|
|
Install-Binary -Url $sessionManagerUrl -Name $sessionManagerName -ArgumentList ("/silent", "/install")
|
|
$env:Path = $env:Path + ";$env:ProgramFiles\Amazon\SessionManagerPlugin\bin"
|
|
|
|
# Install AWS SAM CLI
|
|
Install-Binary -Url "https://github.com/awslabs/aws-sam-cli/releases/latest/download/AWS_SAM_CLI_64_PY3.msi" -Name "AWS_SAM_CLI_64_PY3.msi"
|
|
|
|
Invoke-PesterTests -TestFile "Tools" -TestName "AWS" |