2

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 found. Make sure you are using the correct name of a service role that exists in your account. (Error code: IAM_ROLE_MISSING) Learn more

Any idea about this? Or which part of aws should I check

Any recommendation for a good tutorial on setting up Deploy From Bitbucket Using AWS CodeDeploy.

policy

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "codedeploy:*",
                "s3:*"
            ],
            "Resource": "*"
        }
    ]
}

trust relationship

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "Service": "codedeploy.amazonaws.com",
        "AWS": "arn:aws:iam::****:root"
      },
      "Action": "sts:AssumeRole",
      "Condition": {
        "StringEquals": {
          "sts:ExternalId": "connection:****"
        }
      }
    }
  ]
}

Deployment configuration: CodeDeployDefault.OneAtATime


Builds from bitbucket (Deploy to AWS) were uploaded to s3 buckets and I was able to see all the deployments history but then again all builds were failed.

3
  • Hi, make sure you have done every step correctly, refer this stackoverflow.com/questions/46935468/… I have listed the whole procedure in my answer there. Commented May 31, 2018 at 3:05
  • Is there a way where I can see log errors? Currently deploy to aws returns this error: ->>>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. (Error code: HEALTH_CONSTRAINTS) Commented May 31, 2018 at 7:14
  • check out the very last line in my answer. from code deploy application you can see the logs i think. Commented May 31, 2018 at 9:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.