Skip to content

Commit

Permalink
[fix] skip API GW stage certyficates when ClientCertificateId is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
wakeful authored Jul 8, 2024
1 parent e3b5013 commit fd71b8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/resources/apigateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func (gateway *ApiGateway) getAttachedStageClientCerts(apigwID *string) ([]*stri
}
// get the stages attached client certificates
for _, stage := range stages.Item {
if stage.ClientCertificateId == nil {
logging.Debugf("Skipping certyficate for stage %s, certyficate ID is nil", *stage.StageName)
continue
}
clientCerts = append(clientCerts, stage.ClientCertificateId)
}
return clientCerts, nil
Expand Down

0 comments on commit fd71b8f

Please sign in to comment.