1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a month ago