Reputation: 199
I am new to AWS and want to create an auto scale policy in AWS that launch an instance based on output of an REST API.I am not able to find if this is possible and if so how?
Upvotes: 0
Views: 346
Reputation: 200501
I don't think this is something you can achieve without writing a little code.
I suggest creating an AWS Lambda function to query the REST API and post some sort of numeric metric value to CloudWatch based on the response from the REST API. Schedule the Lambda function to run every 1 minute or 5 minutes depending on your need.
Then you will be able to configure the auto-scaling group to trigger off your custom metric.
Upvotes: 1