refactor ec2 test
add main.rb file