第一次使用CodeBuild时出现错误

Maz*_*r72 7 amazon-web-services aws-codepipeline aws-codebuild

当作为简单代码管道的一部分启动代码构建时,我在几秒钟内收到以下错误。

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
Run Code Online (Sandbox Code Playgroud)

我已使用 AWS 代码管道向导创建了一个简单的构建和部署流程,因此我假设配置错误导致了此操作。

我的问题是它指的队列是什么?我正在独立于任何其他 AWS 任务运行此构建吗?

有关信息,这是我的 buildspec.yml,尽管我怀疑在访问它之前构建失败:

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
Run Code Online (Sandbox Code Playgroud)

Sub*_*hew 7

听起来像是帐户问题。此错误通常意味着您使用的帐户未激活(至少对于 CodeBuild 订阅而言),因此不允许在 CodeBuild 中启动任何构建。请联系 AWS 支持来激活您的账户。

  • 出了什么问题?您能在这里告诉我们您是如何解决这个问题的吗?@Mazerunner72 (4认同)
  • AWS 告诉我这个错误不是由于代码构建配置造成的,而是我的帐户设置中的错误,一旦修复的代码构建开始工作 (2认同)