Hi,
we are getting the below error with code-deploy pipeline through Bitbucket pipeline,
How can we resolve this, I;ve checked it successfully run in Code-Deploy AWS but failed at bitbucket, it happens with last 2 deployments with the same scenario.
Waiter DeploymentSuccessful failed: Max attempts exceeded
<span><strong>ERROR: Deployment failed. Fetching deployment information...</strong></span>
bitbucket-pipelines.yml
pipelines:
branches:
master:
- step:
name: AWS CodeDeploy
image: python:3.7.2
script:
- apt-get update
- apt-get install -y zip curl wget
- echo "'"$UT_AWS_REGION"'"
- wget -O - https://$UT_S3_BUCKET.s3.amazonaws.com/replace-env-vars.sh | bash -s prod.env .env UT_
- zip -r s-app.zip .
- pipe: atlassian/aws-code-deploy:0.5.3
variables:
AWS_DEFAULT_REGION: $UT_AWS_REGION
AWS_ACCESS_KEY_ID: $UT_CODEDEPLOY_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $UT_CODEDEPLOY_SECRET_ACCESS_KEY
APPLICATION_NAME: $AWS_CODEDEPLOY_APP
S3_BUCKET: $UT_S3_BUCKET
COMMAND: 'upload'
ZIP_FILE: 's-app.zip'
VERSION_LABEL: $BUILD_VERSION
- pipe: atlassian/aws-code-deploy:0.5.3
variables:
AWS_DEFAULT_REGION: $UT_AWS_REGION
AWS_ACCESS_KEY_ID: $UT_CODEDEPLOY_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $UT_CODEDEPLOY_SECRET_ACCESS_KEY
APPLICATION_NAME: $AWS_CODEDEPLOY_APP
DEPLOYMENT_GROUP: $AWS_DEPLOYMENT_GROUP
S3_BUCKET: $UT_S3_BUCKET
COMMAND: 'deploy'
WAIT: 'true'
VERSION_LABEL: $BUILD_VERSION
IGNORE_APPLICATION_STOP_FAILURES: 'true'
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'