skip to Main Content

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.

2

Answers


  1. 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.

    Login or Signup to reply.
  2. 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:

    • access key: if executing from local/on-prem
    • IAM role: if within AWS (e.g. EC2 instance)
    • Use cron to schedule the stop/start

    Lambda Function:

    • Use Lambda function URL which you can invoke like an API
    • Use EventBridge to schedule the stop/start
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search