title: AWS CLI - Bash script to manage instances
body: <p>I need to run a shadowsocks server on AWS ( I live in China and this is the best solution in order to use google ... )  </p>
  
  <p>I have already set up <a href="https://www.vpndada.com/how-to-setup-shadowsocks-server-on-amazon-ec2/" rel="nofollow noreferrer">everything on my VM instance</a> the only issue is when the VM restart also the ip change so I have to manually setup my shadowsock client configuration with the new ip.</p>
  
  <ul>
  <li>How can I manage instances using a bash script ?<br>
  For example getting this infos: public ip, status or start/stop the instance ?</li>
  </ul>