title: Using Java to modify AWS file?
body: <p>I would like to build a centOS 7 instance on AWS and install Apache to build web server.
  After that, I would like to modify the config file, /etc/hosts and /etc/httpd/conf.d/test.conf where test.conf is created by me.</p>
  <p>Can I use java to modify the file directly? Or I should create the file and replace the old file on instance? I am little bit confused for the feasibility. Please someone help.</p>