I want to use AWS CodeDeploy to deploy a jar file and then run my java -jar
command from there once it is on the EC2. But I've noticed that AWS CodeDeploy only pulls zip
, tar
and tar.gz` from S3. I'm thinking I will use CLI from my local jenkins to push a .zip file (containing the jar) to S3, then run another CLI command to start AWS CodeDeploy which will pull the .zip from S3.
However I do have a question the details on AWS CodeDeploy:
Can I use the appspec.yml to issue two commands,
1) unzip the .zip from S3 once it is on the EC2
2) Issue the java -jar
on a specific location?
Thanks