Once you completely provision the VM, you can connect to the VM AWS as below
Windows
For Windows users, you can copy the file pem to folder ~/.ssh/
And then, we can run the ssh script that can connect to VM, with the script we can get from template output
Then, we can input yes for finish connect to the VM
Linux
On Linux OS, we have connected to the VM with steps like the window setup
Copy the file pem to the folder .ssh/
Then, we input yes for continue connecting to the VM
Finally, we can connect the VM