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

pipelines with aws codedeploy Edited

Dan Nica I'm New Here Apr 08, 2019

Hi folks,

I am trying to deploy an app using bb pipelines and aws codedeploy but for some reason I get an error, not sure if I doing it right. I have attached the bitbucket-pipelines.yml

pipelines:
default:
- step:
name: Build and Test
image: ubuntu:latest
caches:
- maven
script: # Modify the commands below to build your repository.
- apt-get update && apt install python-pip default-jre maven -y
- pip install --upgrade python
- pip install --upgrade awscli
- eval $(aws ecr get-login --region ${AWS_DEFAULT_REGION} --no-include-email)
- mvn clean install dockerfile:build dockerfile:tag dockerfile:push
services:
- docker
- step:
name: Deploy
script:
- pipe: atlassian/aws-code-deploy:0.2.2
variables:
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
COMMAND: 'deploy'
APPLICATION_NAME: $APPLICATION_NAME
DEPLOYMENT_GROUP: $DEPLOYMENT_GROUP
WAIT: 'true'
options:
docker: true

 

 

and I get the below error:

An error occurred (RevisionDoesNotExistException) when calling the GetApplicationRevision operation: No application revision found for revision.

✖ Failed to fetch revision. 

1 comment

I have other issues, but I think I got past this one.  At least, I don't get this error any more.

From the deploy target instance, I ran the following before running the pipeline:

aws deploy register-application-revision \

--application-name [code deploy application name] \

--description "Description" \

--s3-location bucket=[bucket name],key=[VERSION_LABEL set in bitbucket-pipelines.yml],bundleType=[tar,gzip or zip]

Hope this helps...

how did you solve the revision issue?

Comment

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

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

994 views 1 17
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