/opt/aws/bin/ not avaliable on ec2 code example
Example 1: [ec2-user@ip- *]$ * : * : command not found PATH
export PATH=/usr/local/bin:/usr/bin:/bin:$HOME/bin
Example 2: [ec2-user@ip- *]$ * : * : command not found
export M2_HOME=/home/ec2-user/apache-maven-3.6.0
export JAVA_HOME=/home/ec2-user/jdk1.8.0_151
export ANT_HOME=/home/ec2-user/apache-ant-1.9.13
export PATH=/home/ec2-user/jdk1.7.0_80/bin:/home/ec2-user/apache-maven-3.6.0/bin
export JBOSS_HOME=target/wildfly-run/wildfly-11.0.0.Final