Skip to content

Commit

Permalink
awscloud/secure-instance: log error code comparisons
Browse files Browse the repository at this point in the history
We're seeing some behaviour where create fleet is not retried and
subsequently the SI cleanup fails due to the security group already
being tied to an existing instance. There is no error that an instance
was launched anyway.
  • Loading branch information
croissanne authored and ondrejbudai committed Nov 26, 2024
1 parent 7f27667 commit 7a166cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/cloud/awscloud/secure-instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ func doCreateFleetRetry(cfOutput *ec2.CreateFleetOutput) (bool, []string) {
msg := []string{}
retry := false
for _, err := range cfOutput.Errors {
logrus.Infof("Checking to retry fleet create on error %s (msg: %s)", *err.ErrorCode, *err.ErrorMessage)
if slices.Contains(retryCodes, *err.ErrorCode) {
retry = true
}
Expand Down

0 comments on commit 7a166cd

Please sign in to comment.