第一次使用CodeBuild时出错

问题描述 投票:1回答:3

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

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

我使用AWS Code管道向导创建了一个简单的构建和部署过程,因此我假设配置错误。

我的问题是它引用的队列是什么?我是在独立于任何其他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
amazon-web-services aws-codepipeline aws-codebuild
3个回答
2
投票

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


1
投票

由于某种原因,您的帐户限制似乎目前设置为0。为了增加此限制,并且能够使用codebuild,您需要联系AWS支持。


0
投票

检查地区。您的帐户无法在当前区域设置代码生成。

© www.soinside.com 2019 - 2024. All rights reserved.