[英]Unable to deploy application on AWS pipeline
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.on 上创建管道的构建规范文件。一旦我在 git 集线器上进行了更改,它将成功地完全传播到构建部分。但是当涉及到部署阶段时,我收到以下错误。
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.
尝试运行:
aws codepipeline get-pipeline --name <YOUR_PIPELINE_NAME> --profile <PROFILE> --region <REGION>
查看artifactStore
下 output 中 S3 存储桶的名称,查看 S3 存储桶是否存在于您的流水线区域和账户中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.