.net - Awaiting AWS EC2 instance stop or start completion -
i send request through aws ec2 api stop (or start) instance , callback when machine in stopped
state (or running
).
i'm using aws sdk .net, , i've tried ec2client.stopinstancesasync
method. returns request has posted, does not make asynchronous callback after state transition.
what i'm aiming overall stop instance, change instancetype
once machine stopped
, start instance. appears way might make stop request, start own polling mechanism watch instance state transition stopped
, continue instancetype
change once has completed.
i'd love think there's simpler, less chatty way of waiting transition complete. know of way notified when ec2 state transition has completed?
it looks answer no. there appears no way notified when ec2 instance transition has completed. polling way accomplish this.
Comments
Post a Comment