automate the reactivation of the service httpd after the instance reboot

Viewed 79

I have automated to stop the ec2 instance using lambda function also automated for starting also. I have initially activated the httpd service in that instance. I need to know whether it is possible to automate the process to reactivate the service httpd after the restart. i have another question also after every reboot the public ip of the instance changes why?

Thanks in advance. Subramanian L.

1 Answers
Related