I am creating a java web application and using bitbucket as my code repository. And I have an AWS instance (Running in Ubuntu) in which I host my web application under an apache tomcat application server.
I want to automatically deploy my war file to the webapp folder in tomcat (tomcat directory is something like home/ubuntu/etc/etc)
I know that it is possible to automate war file deployments to AWS using bitbucket and I tried various tutorials and instructions, but it didn't get me anywhere.