lemon-agent-27707
09/04/2020, 11:42 PMvmgr
that has two functions:
• vmgr add
creates a new VM (webserver in this instance) and prints out the public IP. Given that this is just plain Go code, you could extend it to email VM credentials to someone, put them in a queue somewhere, etc.
• vmgr cron <expiration>
ie `vmgr cron 5d`: runs a minutely job scanning for VMs older than the specified expiration. It will retry on failures, etc. You could run this on your laptop, or on a VM/container somewhere
https://github.com/EvanBoyle/automation-api-examples/tree/main/vm_manager_azureimportant-appointment-55126
09/05/2020, 1:21 AMchilly-rainbow-79265
09/05/2020, 6:20 AMtall-librarian-49374
09/06/2020, 9:52 AMchilly-rainbow-79265
09/07/2020, 4:57 AMPulumi.dev.yaml
for keeping the infra state.
In your code, stack is something very disposible. But may I know is it possible, to
1. If I'm creating vms(5 vm) in the loop, and has seperate expiry times.
2. Is it possible to delete specific one ( expired one ) in the loop ?