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…

Adan Rehtla
- 1,548
- 2
- 13
- 26
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…

Yammy
- 21
- 2
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…

FedeCaceres
- 158
- 1
- 11
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?…

PatODay
- 41
- 6
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…

hidday
- 21
- 4
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,…

Diego Queiroz
- 227
- 1
- 6
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…

Renz Manacmol
- 869
- 12
- 27
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:…

Dhaval Shah
- 144
- 1
- 8
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…

bibincatchme
- 333
- 4
- 10
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.…

Jamie
- 428
- 6
- 24
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…

Kuldeep Yadav
- 1,664
- 5
- 23
- 41
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…

FastLearner
- 59
- 5
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…

Rich Steinmetz
- 1,020
- 13
- 28
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…

The Dead Man
- 6,258
- 28
- 111
- 193