Created
August 13, 2019 15:57
-
-
Save MikletNg/b7d7df1d1732e6b60924f9bce07109e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-Location "C:\Windows\system32" | |
Set-ExecutionPolicy RemoteSigned -Force | |
$TempPath = $env:TEMP | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco install -y git.install awscli make | |
aws --version | |
git --version | |
make --version | |
$AccessKeyID = Read-Host -Prompt 'Your Access Key ID from AWS' | |
$SecretAccessKey = Read-Host -Prompt 'Your Secret Access Key from AWS' | |
New-Item $TempPath\aws-credential.txt | |
Set-Content $TempPath\aws-credential.txt "$AccessKeyID`r`n$SecretAccessKey`r`nap-southeast-1`r`njson" | |
type $TempPath\aws-credential.txt | aws configure | |
Remove-Item $TempPath\aws-credential.txt | |
git clone https://github.com/MikletNg/aws-ec2-integrated-vpn-server.git | |
cd aws-ec2-integrated-vpn-server | |
make deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment