Commit 006f0440 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon/common: wait for terminated state

parent 00338a0b
...@@ -99,7 +99,7 @@ func (s *StepRunSourceInstance) Cleanup(state map[string]interface{}) { ...@@ -99,7 +99,7 @@ func (s *StepRunSourceInstance) Cleanup(state map[string]interface{}) {
Conn: ec2conn, Conn: ec2conn,
Pending: []string{"pending", "running", "shutting-down", "stopped", "stopping"}, Pending: []string{"pending", "running", "shutting-down", "stopped", "stopping"},
Refresh: InstanceStateRefreshFunc(ec2conn, s.instance), Refresh: InstanceStateRefreshFunc(ec2conn, s.instance),
Target: "running", Target: "terminated",
} }
WaitForState(&stateChange) WaitForState(&stateChange)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment