Prerequisite
You come from here and have a.conf file ready.
Step 1: Install Wireguard
ubuntu@ip-10-10-11-10:~$ sudo apt install wireguard
Step 2: Bring up the Interface
Assuming the correct config file is located at/etc/wireguard/peer1.conf
.conf file ready.
ubuntu@ip-10-10-11-10:~$ sudo apt install wireguard
/etc/wireguard/peer1.conf