I am a commercial user of OpenVPN AS but I ran into this problem today and believe I found the solution.
The problem with the error you see is that the OpenVPN script that generates the server startup files does not recognize the Amazon Linux AMI as one of the supported distributions.
The solution is to turn off the OS distro auto-detect feature in the script that makes the startup files and instead force it to treat the system as redhat-like.
Details:
You can see this better if you run the setup command in verbose mode:
/usr/local/openvpn_as/bin/ovpn-init --verbose
And when you do that the error at the end when it fails to create the startup script on the Amazon Linux AMI looks like this:
Generating init scripts...
gen init cmd= /usr/local/openvpn_as/scripts/openvpnas_gen_init (256, 'ERROR: Unknown OS distro: None: util/options:73,linux/geninit:292,linux/geninit:138,<string>:1,sagent/sagent_entry:30,linux/geninit:293,util/options:73,linux/geninit:292,linux/geninit:138,util/error:58,util/error:41')
Error: Could not generate server script.
Further digging in, it looks like the script that creates the startup files takes command line arguments:
/usr/local/openvpn_as/scripts/openvpnas_gen_init -h
openvpnas_gen_init: option -h not recognized
Gen Init
Usage: <pgmname> OPTIONS...
Options:
-d, --dry Dry run (output script to stdout)
-a, --auto Output command to autorun init script on reboot
-n, --noauto Output command to disable autorun init script on reboot
-e, --exec Execute auto or noauto command
--distro= Distro family (redhat or debian). The default value is
auto-detected.
--version
--help Display this help and exit.
And finally, if you rerun this script manually and pass in the "--distro redhat" argument you will get a working config:
# /usr/local/openvpn_as/scripts/openvpnas_gen_init --distro redhat
writing init script to /etc/init.d/openvpnas