Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Deploy Spring boot application on AWS EC2 insatnce using bitbucket pipelines.

I want to auto deploy the spring boot app(.jar) on AWS EC2 instance. I have pushed code on bitbucket and create maven build pipeline. I am able to build the project. After that I am using AWS Code Deploy to transfer to deploy code on EC2 ubuntu instance but getting error :
The CodeDeploy agent did not find an AppSpec file within the unpacked revision directory at revision-relative path "appspec.yml". The revision was unpacked to directory "/opt/codedeploy-agent/deployment-root/a3938031-b1d1-4c47-b5a8-4af047f1cb7e/d-MGHDO913O/deployment-archive", and the AppSpec file was expected but not found at path "/opt/codedeploy-agent/deployment-root/a3938031-b1d1-4c47-b5a8-4af047f1cb7e/d-MGHDO913O/deployment-archive/appspec.yml".

I have put appspec.yml file in path relative to pom.xml but still it not picking. Also, I am not aware what to write in appspec.yml file.




Please suugest me the steps to solve this problem.

1 answer

0 votes

Hi @amitjas, you have to put your `appspec.yml` into your jar archive.

Iam also facing same issues

@amitjas You resolved this ?

I'm same problem.


@amitjasCould you fix the issue?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,922 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you