Skip to content

Commit

Permalink
INF-928 Add WaitForInstance after modifying the instance on restoration
Browse files Browse the repository at this point in the history
After restoring an instance, AWS keeps the default security
groups. So, odin needs to modify the instance to
adjust it, but it also needs to wait for the modification to be in
place, or the instance might not get connections right.

Refs [INF-928](https://mydevex.atlassian.net/browse/INF-928)
  • Loading branch information
Ignasi Fosch authored and github-actions[bot] committed Aug 20, 2024
1 parent 3ca596d commit e59f316
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/odin/instance_restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func RestoreInstance(
}
result = *instance.Endpoint.Address
err = modifyInstance(instanceName, params, svc)
if err != nil {
return
}
err = WaitForInstance(instance, svc, "available")
return
}

Expand Down

0 comments on commit e59f316

Please sign in to comment.