Amazon Web Services (AWS) is now one of the most widely used cloud services for hosting SAP applications.
So it is highly important for you to switch off these SAP/AWS instances during unused hours to save the cost on unused resources.
I am just referring you to the interesting blogs/articles which will help you achieve this. Credits to the authors for such detailed blogs.
This can be achieved in two steps.
A. Stop/Start application/DB along with operating system stop/start. Use init scripts to do this as explained in the blog SAP/DB auto start/stop. During maintenance (Multiple reboots) you can switch off the script using, chkconfig <scriptname> off.
With this the cloud watch will trigger the lambda functions to stop/start the instance. The init script will recognize the stop/start request and start the SAP stop/start process.
Other methods like AWS data Pipeline and Autoscaling cannot be used for the purpose as it will not support clean shutdown of SAP.
We have implemented for our development and quality systems using these blogs and it works like a charm.
Have a question? Use the comment section below.