Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/v1.21.0-beta14/ec2-credential-error-logging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
- type: FIX
issueLink: https://github.com/solo-io/gloo/issues/0000
resolvesIssue: false
description: Add ERROR level logging when EC2 upstream discovery fails due to invalid or missing AWS credentials.
2 changes: 2 additions & 0 deletions projects/gloo/pkg/plugins/aws/ec2/eds.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (c *edsWatcher) updateEndpointsList(endpointsChan chan v1.EndpointList, err
for _, ns := range c.secretNamespaces {
nsSecrets, err := c.secretClient.List(ns, clients.ListOpts{Ctx: c.watchContext})
if err != nil {
contextutils.LoggerFrom(c.watchContext).Errorw("failed to list secrets for EC2 upstream discovery", "namespace", ns, "error", err)
errs <- err
return
}
Expand All @@ -100,6 +101,7 @@ func (c *edsWatcher) updateEndpointsList(endpointsChan chan v1.EndpointList, err

allEndpoints, err := getLatestEndpoints(c.watchContext, c.ec2InstanceLister, secrets, c.writeNamespace, c.upstreams)
if err != nil {
contextutils.LoggerFrom(c.watchContext).Errorw("failed to fetch EC2 instances for upstream discovery", "error", err)
errs <- err
return
}
Expand Down