[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
반응형
'⇥ DevOps Tech 🙋🏻♀️ > ✏️ 한 줄 에러' 카테고리의 다른 글
댓글
이 글 공유하기
다른 글
-
proxmoxer required for this module
proxmoxer required for this module
2024.03.11 -
Caused: java.security.cert.CertPathValidatorException: validity check failed
Caused: java.security.cert.CertPathValidatorException: validity check failed
2024.01.10 -
[AWS] CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server
[AWS] CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server
2024.01.08 -
Failed to connect to repository : Error performing git command: git ls-remote -h url HEAD
Failed to connect to repository : Error performing git command: git ls-remote -h url HEAD
2023.10.23