admin管理员组

文章数量:1392002

After adding YetAnotherCloudwatchExporter(YACE) to my Prometheus server & configuring AWS CLI to use my provided SSO profile, I'm getting the errors below when running YACE. I've already confirmed I'm logged in to a sso session & the role ARN is correct. Can anyone please let me know what I'm missing or what I did wrong?

{
  "time": "2025-03-11T17:36:04.643523868Z",
  "level": "ERROR",
  "source": "scrape.go:50",
  "msg": "Couldn't get account Id",
  "version": "custom-build",
  "job_type": "AWS/NetworkELB",
  "region": "eu-west-2",
  "arn": "arn:aws:sts::186268008081:assumed-role/AWSReservedSSO_ReadOnlyAccess_2fdeaca97a5f7371/[email protected]",
  "err": "NoCredentialProviders: no valid providers in chain\ncaused by: EnvAccessKeyNotFound: failed to find credentials in the environment.\nSharedCredsLoad: failed to load profile, .\nEC2RoleRequestError: no EC2 instance role found\ncaused by: RequestError: send request failed\ncaused by: Get \"http://169.254.169.254/latest/meta-data/iam/security-credentials/\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
}

本文标签: amazon web servicesUsing AWS SSO credentials with YACEStack Overflow