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

질문됨 일 년 전520회 조회
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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠