Skip to content

Instantly share code, notes, and snippets.

@MikletNg
Created August 13, 2019 15:57
Show Gist options
  • Save MikletNg/b7d7df1d1732e6b60924f9bce07109e0 to your computer and use it in GitHub Desktop.
Save MikletNg/b7d7df1d1732e6b60924f9bce07109e0 to your computer and use it in GitHub Desktop.
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