BookmarkSubscribeRSS Feed
orbar
Calcite | Level 5

Hello SAS Community,

 

We are in the process of moving some services to the AWS cloud and have around 8 SAS instances running. Our goal is to create an automation script to shut these instances down during off-hours to save costs.

 

orbar_0-1718803506318.png

 

Here are a few specific questions we have:

 

  1. Shutdown Mechanism: When shutting down an EC2 instance using AWS commands, does it perform a graceful shutdown similar to a normal OS shutdown, or is it more like pulling the power cord?
  2. Shutdown Order: Is there a best practice for the order in which to shut down and start up instances? For example, should databases be shut down last and started first?
  3. Automation Tools: What are the recommended tools or methods for automating this process? We've looked into AWS Lambda and AWS Systems Manager but would appreciate guidance or examples.
  4. Handling Dependencies: How do we ensure that dependent services are shut down in the correct order to prevent issues?

Here is what we are currently considering:

 

  • Using AWS Lambda triggered by CloudWatch Events to stop instances.
  • Ensuring that our shutdown sequence handles dependencies correctly (e.g., web servers -> application servers -> databases).

 

Any insights, best practices, or sample scripts would be greatly appreciated!

Thanks in advance for your help!

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 129 views
  • 0 likes
  • 1 in conversation