Questions tagged [bitbucket-aws-code-deploy]

37 questions
13
votes
2 answers

An error occurred (ThrottlingException) when calling the GetDeployment operation (reached max retries: 4): Rate exceeded

With an increase in the number of Deployment Groups in AWS CodeDeploy, BitBucket Pipelines are starting to fail more often. PIPELINE FAILED... + python ./_scripts/codedeploy_deploy.py Failed to deploy application revision. An error occurred…
4
votes
1 answer

Get the version from pom.xml from a Java Maven project in Bitbucket pipeline

Is there a way to get the version defined in the pom.xml file so it can be used with a variable in a Bitbucket pipeline? There are similar questions here on StackOverflow but they mostly refer to Jenkins and "readMavenPom" which doesn't seem to be…
Frank
  • 5,741
  • 4
  • 28
  • 49
2
votes
0 answers

How can I use YAML anchors / override the Codedeploy block of code?

how can I use YAML anchors/override for AWS Codedeploy block of code and use a different DEPLOYMENT_GROUP? Is this possible? I have two deployment groups (staging and production deployment groups) that target one EC2 instance. I'm using bitbucket…
2
votes
2 answers

AWS CodeDeploy script exited with code 127

This is my first time using AWS CodeDeploy and I'm having problems creating my appspec.yml file. This is the error I'm getting: 2019-02-16 19:28:06 ERROR [codedeploy-agent(3596)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Error…
2
votes
1 answer

Does CodeDeploy ignore the files listed in .gitignore?

I've been trying to figure out if CodeDeploy will respect .gitignore and not zip the files listed within .gitignore as part of the deployment or if CodeDeploy zips the entire repo outside of the .gitignore itself with the --ignore-hidden-files flag?…
2
votes
0 answers

AWS CodeDeploy script does not exist during AfterInstall hook

I am having trouble with executing my install_dependencies.sh script in AfterInstall hook- it seems like my deployment-archive from which CodeDeploy agent is trying to run the scripts from does not yet exists during the AfterInstall hook. I am…
2
votes
2 answers

How Can I deploy from Bitbucket to AWS to different instances and different folders?

I have two instances in AWS. One for production and one for homologation. I deploy automatically with CodeDeploy. I have two branches on BitBucket, the master and homolog. When I commit in the homolog deploy must go to the instance of homologation,…
2
votes
0 answers

Deployment Failed: Deploy From Bitbucket Using AWS CodeDeploy

I was able link bitbucket with aws although the deployment from bitbucket returns an error below. Deployment Failed The deployment failed because no IAM role with the IAM role name (arn:aws:iam::******:role/m30role) specified in this request was…
1
vote
3 answers

AWS CodeDeploy error - The deployment failed because a specified file already exists at this location

i am trying to deploy the python application through code-deploy to the ec2 instances but during deployment i am facing this error The deployment failed because a specified file already exists at this location:…
1
vote
2 answers

How to codedeploy appspec.yml runas ubuntu user

AWS CodeDeploy is used for a simple WordPress application. Installed AWS codedeploy-agent on ubuntu 20.04 with help of the below script #!/bin/bash apt update apt install ruby -y gem install bundler git clone…
1
vote
1 answer

AWS CodeDeploy under AWS Educate Account

I am having some trouble doing code deploy with my AWS Educate account. Initially, when I was setting things up I was following this article.…
1
vote
0 answers

Bitbucket pipeline: Deploy fresh commit on Tomcat in an ec2 instance

I have a bitbucket repository for my server side code which is deployed in tomcat. My development testing environment is an AWS EC2 linux instance. With every single change needed to be tested in the environment requires following steps: Pull the…
1
vote
1 answer

Solution for Bitbucket -> pipeline that can build different OSes -> deploy to hardware

Our code is hosted in Bitbucket, originally we wanted to use Bitbucket pipeline to do the build. Since Bitbucket pipeline does not support building windows application, we need to find alternative solution to build. 2 options: 1. Use Jenkins as…
1
vote
1 answer

How to exclude Multiple folders with the EXTRA_ARGS variable?

With the current syntax of bitbucket's EXTRA_ARGS variable one directory is excluded from deployment like this: EXTRA_ARGS: '--exclude=YOUR_DESIRE_FOLDER_PATH/*' (Bitbucket Pipeline - how to exclude files or folders?) But how to exclude multiple…
1
vote
1 answer

sudo yum install httpd is throwing errors

I am creating CI with code deploy amazon ec2, unfortunately after git push I get the following error. scripts/install_dependencies The script at the specified location: scripts/install_dependencies run as user root failed with exit code 1 View…
1
2 3