새소식

⇥ DevOps Tech 🙋🏻‍♀️/✏️ 한 줄 에러

[AWS] The deployment failed because a specified file already exists at this location: ***

  • -
반응형

appspec.yml 에서 명시해놓은 files 작업을 수행할 때 이미 존재하는 파일에 대해 어떻게 처리할 것인지 몰라서 발생하는 에러이다.

덮어 씌워서 처리하기 위해 아래의 코드를 files 문단 밑에 추가해주면 된다.

file_exists_behavior: OVERWRITE

 

files:
  - source: deploy.jar
    destination: /home/deploy
file_exists_behavior: OVERWRITE
permissions:
  - ***

 

 

-

Image by vectorjuice on Freepik

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.