AWS Code Pipeline and CodeDeploy, appspec.yml for wordpress (File already exists exception)
Zaw Htut Win
Posted on March 11, 2022
This is my sample appspec.yml
version: 0.0
os: linux
files:
- source: /
destination: /var/www/wordpress/
overwrite: true
file_exists_behavior: OVERWRITE
In CodeDeploy default is DISALLOW, so you will get an error if the file already exist in that location.
And this is Updated AWS User Guide for AppSpec 'files' section (EC2/On-Premises deployments only). In there you will find three options, DISALLOW,OVERWRITE and RETAIN.
💖 💪 🙅 🚩
Zaw Htut Win
Posted on March 11, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
wordpress AWS for WordPress: Getting starting with Light Sail, Cloud-front and Route 53 : Part-1
December 3, 2023