Skip to content

Will a new Lightsail snapshot instance update httpd.conf

0

If I snapshot a current instance then use that snapshot to create a new instance with more RAM/CPUs will the Apache conf (httpd-medium/large.conf or mysql's memory.conf) be updated to reflect the increased RAM or is that part of the snapshot and something I need to do manually?

asked 2 years ago397 views
1 Answer
0

I think that depends on the software that set up the values (i.e. a script that may run at boot of cloud-init to set values), but in general, no. A snapshot is a copy of disk and a new instance from that image will have the same values in config files.

Hope this helps!

AWS
EXPERT
answered 2 years ago
AWS
EXPERT
reviewed 2 years ago
  • Maybe I should have mentioned that I'm using a Lightsail LAMP blueprint.

    Decided to just try it and find out. The answer, for anyone looking for this in the future, is that both the apache and mysql configs were automatically updated to use a larger memory config. The new instance from snapshot apache and mysql configs went from the xlarge.conf to use the 2xlarge.conf memory config

  • It happens for Bitnami stacks (such as Lightsail's Bitnami LAMP stack) because setting those configurations is part of the scripts and services Bitnami runs at application startup or initialization time.

    For example those mentioned here for Apache - https://docs.bitnami.com/aws/infrastructure/lamp/get-started/understand-config/

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.