I am launching an EC2 instance and it seems the most popular WordPress AMI in the marketplace is the one provided by Bitnami. However, there is a big issue with the software/system update.
I ask Bitnami and they said if I want to update LAMP on the server, then I need to launch another EC2 instance, then migrate the data from the current instance to the new one. That is really a headache. As I need to do all setups again in the new instance.
I notice that Bitnami AMI will update every day. Does that means I need to do the migration every day to make sure my system contains the up-to-date security updates?
In the past, I use a managed dedicated server on InMotion Hosting, CentOS 6.x + LAMP, and the LAMP will get updated automatically without having to migrate a new server every day.
Therefore, I just wonder for EC2 instance, is there a better way to update the software, including the OS, than doing migration every day?
Thanks
Update
Let me describe the detailed steps to migrate an EC2 instance:
- Launch a new EC2 instance.
- Perform all the setups done on the old instance, such as install the SSL certificate, set file/directory permissions, set cron jobs, etc.
- Copy all WordPress files from the old instance to the new instance.
- Export the database in the old instance, then import it to the new instance.
The migration of the WordPress can be found at https://wordpress.org/support/article/moving-wordpress/. The migration of other setups are application specific.
Update 2
This https://community.bitnami.com/t/is-the-wordpress-certified-by-bitnami-and-automattic-amazon-image-auto-updated/99631/2?u=ccw is the official support from bitnami and what they suggest is
WordPress can be updated using the admin dashboard, but for the infrastructure components, you will need to launch a new instance and migrate the data when needed