CodeDeployment Issue

0

The deployment failed because a specified file already exists at this location: /var/www/html/index.html, this is the error message

質問済み 1年前516ビュー
1回答
0

The error is caused by the existence of the same file in "/var/www/html/" of the instance to be deployed.
To resolve the error, you need to set "file_exists_behavior" in appspec.yml.
If "OVERWRITE" is set for "file_exists_behavior", the same file will be overwritten and deployed even if it exists when deploying.

https://docs.aws.amazon.com/ja_jp/codedeploy/latest/userguide/reference-appspec-file-structure-files.html
Sample appspec.yml.

version: 0.0
os: linux
files:
  - source: /
    destination: /var/www/html
file_exists_behavior: OVERWRITE
permissions:
  - object: /var/www/html
    owner: apache
    group: apache
    mode: 755
    type:
      - file
      - directory
profile picture
エキスパート
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ