The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

amitjas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2019

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.

appspec.yml
appspec.yml.png

bitbucket-pipelines.ymlbitbucket-pipeline.png

 

Please suugest me the steps to solve this problem.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Alexander Zhukov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 16, 2019

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

Omprakash Kourav
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 11, 2020

Iam also facing same issues

lucascaran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 26, 2020

@amitjas You resolved this ?

I'm same problem.

=(

subhakundu4
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2020

@amitjasCould you fix the issue?

TAGS
AUG Leaders

Atlassian Community Events