Getting "error parsing cloudwatch metadata: awsAccessKeyID not found" even though I'm using a TriggerAuthentication #6227
Replies: 1 comment
-
The first issue I am having is with the conditon of the role. the namespace was incorrect and the keda_operator must be keda-operator. which shows me that there is no miss configured AWS ROLE<>K8S serviceaccount. |
Beta Was this translation helpful? Give feedback.
-
Hello I am deploying KEDA 2.15.1 and seeing the following error
2024-10-09T13:29:06Z ERROR Failed to get TriggerAuthentication {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"udbm-service","namespace":"qa"}, "namespace": "qa", "name": "udbm-service", "reconcileID": "dc837a36-4325-48f9-96f3-1cf0557a18ad", "error": "TriggerAuthentication.keda.sh "keda-aws-credentials" not found"}
github.com/kedacore/keda/v2/pkg/status.updateTriggerAuthenticationStatus
/workspace/pkg/status/status.go:103
github.com/kedacore/keda/v2/pkg/status.UpdateTriggerAuthenticationStatusFromTriggers
/workspace/pkg/status/status.go:139
github.com/kedacore/keda/v2/controllers/keda.(*ScaledObjectReconciler).updateTriggerAuthenticationStatus
/workspace/controllers/keda/scaledobject_controller.go:605
github.com/kedacore/keda/v2/controllers/keda.(*ScaledObjectReconciler).Reconcile
/workspace/controllers/keda/scaledobject_controller.go:212
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:119
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:316
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227
2024-10-09T13:29:06Z ERROR Reconciler error {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"udbm-service","namespace":"qa"}, "namespace": "qa", "name": "udbm-service", "reconcileID": "dc837a36-4325-48f9-96f3-1cf0557a18ad", "error": "error parsing cloudwatch metadata: awsAccessKeyID not found"}
The serviceaccount is
apiVersion: v1 automountServiceAccountToken: true kind: ServiceAccount metadata: annotations: eks.amazonaws.com/role-arn: arn:aws:iam::RED:role/redacted meta.helm.sh/release-name: keda meta.helm.sh/release-namespace: keda creationTimestamp: "2024-10-09T07:47:13Z" labels: app.kubernetes.io/component: operator app.kubernetes.io/instance: keda app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: keda-operator app.kubernetes.io/part-of: keda-operator app.kubernetes.io/version: 2.15.1 helm.sh/chart: keda-2.15.1 name: keda-operator namespace: keda resourceVersion: "32156157" uid: b1084887-e71b-4c54-9fd8-ada2486b1b5e
and the role looks fine the trust policy is
Beta Was this translation helpful? Give feedback.
All reactions