AWS System Manager Provides a way to start/stop ec2 instances with default automation documents AWS-StartEC2Instance, AWS-StopEC2Instance. Similar to this I want to create an automation to start/stop rds and elastic search instances. Not able to find relevant resources.
Question posted in Amazon Web Sevices
The official Amazon Web Services documentation can be found here.
The official Amazon Web Services documentation can be found here.
2
Answers
For RDS, you can use AWS Instance Scheduler or a more simpler solution based on Lambda and Eventbridge.
You cannot stop and restart OpenSearch’s instances, you can only delete and recreate the cluster.
I don’t think you can stop/start AWS OpenSearch(Elasticsearch) cluster.
Here’s couple of ideas to achieve this for RDS:
Use AWS System Manager Document:
Bash + awscli + access keys or IAM role:
Lambda Function: