Errors on using CodeBuild for first time

2019-07-26 09:24发布

When starting a code build as part of a simple code pipeline, I get the following error within a few seconds.

Action execution failed
Error calling startBuild: Cannot have more than 0 builds in queue for the account (Service: AWSCodeBuild; Status Code: 400; Error Code: AccountLimitExceededException; Request ID: 80bfxxxxx

I have used the AWS Code pipeline wizard to create a simple build and deploy process, so I assume a misconfiguration did this.

My question is what is the queue it refers to? I am running this build in isolation of any other AWS task?

For information this is my buildspec.yml, though I suspect the build fails before accessing it:

version: 0.2

env:

phases:
  install:
    commands:
      - echo Entered the install phase...
      - apt-get update -y
      - apt-get install -y maven
    finally:
      - echo This always runs even if the update or install command fails 
  pre_build:
    commands:
      - echo Entered the pre_build phase...
      - cd server/harvest
    finally:
      - echo This always runs even if the login command fails 
  build:
    commands:
      - echo Entered the build phase...
      - echo Build started on `date`
      - mvn package
    finally:
      - echo This always runs even if the install command fails
  post_build:
    commands:
      - echo Entered the post_build phase...
      - echo Build completed on `date`
artifacts:
  files:
    - target/harvest-1.0-SNAPSHOT.jar
  discard-paths: yes

3条回答
Root(大扎)
2楼-- · 2019-07-26 09:44

It appears that your account limit is currently set to 0 for some reason. In order to increase this limit, and be able to use codebuild, you will need to contact AWS support.

查看更多
Root(大扎)
3楼-- · 2019-07-26 09:44

Check the Region. Your account would not have setup for codebuild in current region.

查看更多
等我变得足够好
4楼-- · 2019-07-26 09:45

Sounds like an account issue. This error typically means that the account you are using is not active (at least not for CodeBuild subscription), hence not allowed to start any builds in CodeBuild. Please contact AWS support to activate your account.

查看更多
登录 后发表回答