mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-28 11:49:39 -05:00
terminate aws instance if fail to connect
This commit is contained in:
@@ -339,6 +339,9 @@ impl State {
|
||||
))
|
||||
.await;
|
||||
}
|
||||
let _ = self
|
||||
.terminate_ec2_instance(config.region, &instance_id)
|
||||
.await;
|
||||
Err(anyhow!("{:#?}", res.err().unwrap()))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user