mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-30 19:54:00 -04:00
builder/amazon/common: wait for terminated state
This commit is contained in:
@@ -99,7 +99,7 @@ func (s *StepRunSourceInstance) Cleanup(state map[string]interface{}) {
|
||||
Conn: ec2conn,
|
||||
Pending: []string{"pending", "running", "shutting-down", "stopped", "stopping"},
|
||||
Refresh: InstanceStateRefreshFunc(ec2conn, s.instance),
|
||||
Target: "running",
|
||||
Target: "terminated",
|
||||
}
|
||||
|
||||
WaitForState(&stateChange)
|
||||
|
||||
Reference in New Issue
Block a user