无法在AWS管道上部署应用程序

时间:2019-10-17 21:11:04

标签: amazon-web-services amazon-elastic-beanstalk

version: 0.2

phases:
  install:
    runtime-versions:
      php: 7.3
  pre_build: # commands to be run before build
    commands:

      - aws --version


  build:
    commands:
      - echo Build started on `date`
      - echo installing composer..
      - composer install
      - echo creating .env file..
      - cp .env.example .env
      - echo generating app key
      - php artisan key:generate
      - echo Building the Docker image...

  post_build:
    commands:
      - echo Build completed on `date`

这是我用于在was上创建管道的构建规格文件。一旦我在git hub上进行了更改,它将成功成功地完全传播到build部分。但是在部署阶段,我遇到了以下错误。

The action failed because either the artifact or the Amazon S3 bucket could not be found. Name of artifact bucket: codepipeline-us-east-1-245934183698. Verify that this bucket exists. If it exists, check the life cycle policy, then try releasing a change.

1 个答案:

答案 0 :(得分:0)

尝试运行:

library(data.table)
setDT(df)

dcast(df, first ~ rowid(first), value.var = c('second', 'third'), sep = '.')

#    first second.1 second.2 second.3 third.1 third.2 third.3
# 1:     A        1        2        3      A1      A2      A2
# 2:     B        1       NA       NA      B1    <NA>    <NA>
# 3:     C        1        2       NA      C1      C2    <NA>

aws codepipeline get-pipeline --name <YOUR_PIPELINE_NAME> --profile <PROFILE> --region <REGION> 下的输出中检查S3存储桶的名称,并查看您的管道和帐户区域中是否存在S3存储桶。