Pre-requisites:

1. Install rdp client on mac here

2. Create your EC2 Instance

  • Choose windows server Base AMI
  • Create an EC2 i3.metal instance
  • Ensure security group allow rdp to port 3389

5. Go to connect to created ec2 instance

6. Choose administrator as username

7. Go to get password and paste in the private key used to create ec2 ec2-connect

8. Click decrypt password

9. Copy the password

10. Go to the rdp tool on your mac

11. Paste in the public dns and username and password to the keychain and click connect

  • Username: Administrator
  • Password: the decrypted password

12. Follow this guide to install HyperV on windows server

13. Make sure to check the box to allow server to restart after installation

14. Install wsl2 on the server:

wsl.exe --install --no-distribution

OR

wsl --install

THEN

wsl --set-default-version 2

15. Restart the server and wait for server to restart -> reconnect to VM

16. Download docker desktop

17. Right click docker desktop and run as admin

18. Wait for docker engine to start

19. Go to command prompt and run as admin

20. Type "Windows Powershell" in the Run dialog.

21. Press Ctrl + Shift + Enter to open Windows Powershell as an administrator.

  • If prompted by User Account Control (UAC), click "Yes" to allow the application to make changes to your device.
  • Run docker ps -a to verify if the gateway container is running

Execution:

1. Go to kong konnect and go to gateway manager -> Data Plane nodes

2. Click create a data plane node and choose windows DP

3. Copy the docker run command

4. Open windows powershell as admin

5. Paste it into the windows powershell on windows server (make sure to run as admin)

  • Run docker ps -a to verify if the gateway container is running

6. Head back to Konnect to verify the installation is complete

7. Create a service and route and test the connectivity to data plane via Edge browser

Additional Configuration

1. Go to "Windows Defender Firewall" and click "advanced settings"

2. Click "Inbound Rules" -> "New Rule" windows

3. Follow the wizard when creating new rule

  • Click port
  • allow specific local ports: 8000
  • Allow the connection
  • Allow the rule on domain, private and public config
  • Name: "kong"

4. Go to insomnia or try from local laptop browser to access the ec2 public domain and see if it's a success 200 response insomnia