Forums

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

✖ Error waiting for deployment successful: Waiter DeploymentSuccessful failed

Suhail Ansari
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!
November 29, 2023
✖ Error waiting for deployment successful: Waiter DeploymentSuccessful failed: Waiter encountered a terminal failure state: For expression "deploymentInfo.status" we matched expected path: "Failed"
100.
INFO: {'deploymentInfo': {'applicationName': '$APPLICATION_NAME', 'deploymentGroupName': '$DEPLOYMENT_GROUP', 'deploymentConfigName': 'CodeDeployDefault.AllAtOnce', 'deploymentId': 'd-7ZZ0YWY01', 'revision': {'revisionType': 'S3', 's3Location': {'bucket': '$S3_BUCKET', 'key': 'suhail-cicd-1-2f9c46a2', 'bundleType': 'zip'}}, 'status': 'Failed', 'errorInformation': {'code': 'HEALTH_CONSTRAINTS', 'message': 'The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems.'}
I have been trying to upload S3 image through aws cloud deploy, here's my yml
image: atlassian/default-image:2

pipelines:
  pull-requests:
    "**":
      - step:
          max-time: 120
          size: 1x
          script:
            - npm test
          trigger: automatic
         
  branches:
      deployment:
        - step:
            name: Build
            script:
              - zip -r production.zip *
            artifacts:
              - production.zip
        - step:
            name: Upload to S3
            services:
              - docker
            script:
              - pipe: atlassian/aws-code-deploy:1.4.0
                variables:
                  AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
                  AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
                  AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
                  S3_BUCKET: $S3_BUCKET
                  COMMAND: "upload"
                  APPLICATION_NAME: $APPLICATION_NAME
                  ZIP_FILE: "production.zip"
        - step:
            name: Deploy with CodeDeploy
            services:
              - docker
            script:
              - echo "Environment ${REPOSITORY_VARIABLE}"
              - pipe: atlassian/aws-code-deploy:1.4.0
                variables:
                  AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
                  AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
                  AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
                  S3_BUCKET: $S3_BUCKET
                  COMMAND: "deploy"
                  APPLICATION_NAME: $APPLICATION_NAME
                  DEPLOYMENT_GROUP: $DEPLOYMENT_GROUP
                  IGNORE_APPLICATION_STOP_FAILURES: "true"
                  FILE_EXISTS_BEHAVIOR: "OVERWRITE"
                  WAIT: "true"

1 answer

1 vote
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 1, 2023

Hi @Suhail Ansari . Please, check this answer.

Regards, Igor

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events