-
Hello, I struggle with a similar solution. Is it possible to start only VM without creating them from AMI because I have to use macOS bare metal on a dedicated host in AWS? Can you give me a suggestion? Main goal is to have onespin agent which will be scheduled for start/stop depending on business hours and if the items in the job queue are more than 1 to start VM and init the job after succeeding to stop the VM. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, sorry for the response delay I was out of office. This project is intended to start and provision a fresh VM each time and then trash it. Eventually I can add more AMI or add the ability to select a custom AMI. But, in your case, you seem to have an already ready (stopped) instance that you just want to start on stop depending on if needed or not. This project look to be overkill for this. I assume you can achieve what you want with a simpler solution. For instance:
If you want make sure your instance is stopped outside business hours, a good solution is CloudWatch/Eventbridge events (See this example) eventually coupled with a Lambda function if you need more precise action. |
Beta Was this translation helpful? Give feedback.
Hello, sorry for the response delay I was out of office.
This project is intended to start and provision a fresh VM each time and then trash it. Eventually I can add more AMI or add the ability to select a custom AMI. But, in your case, you seem to have an already ready (stopped) instance that you just want to start on stop depending on if needed or not. This project look to be overkill for this.
I assume you can achieve what you want with a simpler solution. For instance: