mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/aws: Avoid crash when EgressOnly IGW disappears (#14929)
This commit is contained in:
parent
5d33023d99
commit
b802897cea
@ -74,6 +74,9 @@ func EIGWStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc {
|
||||
return nil, "", err
|
||||
}
|
||||
}
|
||||
if len(resp.EgressOnlyInternetGateways) < 1 {
|
||||
resp = nil
|
||||
}
|
||||
|
||||
if resp == nil {
|
||||
// Sometimes AWS just has consistency issues and doesn't see
|
||||
|
Loading…
Reference in New Issue
Block a user