kubecost / cost-analyzer-helm-chart

Kubecost helm chart
http://kubecost.com/install
Apache License 2.0
489 stars 419 forks source link

sigv4proxy NoCredentialProviders #3520

Open eahangari-8x8 opened 4 months ago

eahangari-8x8 commented 4 months ago

Hello everyone I have installed the kubecost using helm chart and argocd but I get the following error in the sigv4proxy container. here is the log:

 time="2024-06-27T20:31:22Z" level=error msg="unable to proxy request" error="NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors"

here is my values.yaml

global:
  grafana:
    enabled: false
    proxy: false

  prometheus:
    enabled: true

  amp:
    enabled: true
    prometheusServerEndpoint: http://localhost:8005/workspaces/<redacted>
    remoteWriteService: https://aps-workspaces.us-east-1.amazonaws.com/workspaces/<redacted>/api/v1/remote_write
    sigv4:
      region: us-east-1

  platforms:
    cicd:
      enabled: true
      skipSanityChecks: true

sigV4Proxy:
  region: us-east-1
  host: aps-workspaces.us-east-1.amazonaws.com

I really appreciate it if you can give me any help or advice on how to resolve it. Thanks

eahangari-8x8 commented 4 months ago

update: Im not using IRSA ( Iam role for service account ) I prefer to use eks pod identity but it seems that it is only defined for (https://docs.kubecost.com/install-and-configure/install/cloud-integration/aws-cloud-integrations/aws-cloud-integration-using-irsa). can I have the confirmation on this please. So I have to use the IRSA for the sigv4

eahangari-8x8 commented 4 months ago

update2: https://github.com/awslabs/aws-sigv4-proxy/pull/191 the pr has already been opened to update the GO sdk version