diff --git a/aws/resources/apigateway.go b/aws/resources/apigateway.go index e1cd36c8..3600b120 100644 --- a/aws/resources/apigateway.go +++ b/aws/resources/apigateway.go @@ -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