I want to deploy my spring boot application to EC2.
I am using scp command to copy my jar to ec2 var folder,but I get permission denied.
I checked and found that this folder has access to root user only.
Also when I am logged in as ec2-user,I dont have rights to create new folder.
Can you please suggest how as a ec2-user,code can be deployed to Ec2 instance.