Thank you for your reply Jota!
Adding the --http to the line parameter worked for me.
I originally had the intention to use your script to configure my SSL certificates but the script file is not available on the LAMP stack for Lightsail on AWS. I've checked both the PHP5 & PHP7 versions. I even did a hard drive search for that particular file name, just in case, it was placed in a different location. So I had to go with the manual route.
Did I miss the script file somehow?
Can I also suggest to remind the user on the guide to make sure the A record www. is already in place before running the command in question.
Thank you again for your help! I really appreciate it!