[英]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.