FATAL: get k8s artifacts with node info error: failed listing resources for gvr: apps/v1, Resource=deployments - Get "https://17445F7FD07FE5246FBFE67AD1C0AEC7.gr7.ap-northeast-1.eks.amazonaws.com/apis/apps/v1/deployments": getting credentials: exec: executable aws failed with exit code 255 #4315
Jaideep1997
started this conversation in
Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
i have been using trivy command = "trivy k8s cluster --compliance=k8s-nsa --report all"
i want to login from aws profile name, and role ARN to run the trivy command, the credentials are stored in .aws folder where i have the other account's client's role ARN and profile name, and my account's access key and secret key that is connected with another client account's role_ARN
Desired Behavior
i dont want to login directly by running aws configure, i want to login by clients role ARN that connected by the IAM role with my account ,
and i want to access client's cluster details by its role ARN that is connected with my account.
i have saved credentials in .aws folder like this -
[source]
aws_access_key_id = AK
aws_secret_access_key = b****R
[CloudArmour-Internal]
role_arn = arn:aws:iam::**********:role/NewTestCrossAccount
source_profile = source
Actual Behavior
getting me this error - "2023-05-11T14:22:34.334+0530 FATAL get k8s artifacts with node info error: failed listing resources for gvr: apps/v1, Resource=deployments - Get "https://17445F7FD07FE5246FBFE67AD1C0AEC7.gr7.ap-northeast-1.eks.amazonaws.com/apis/apps/v1/deployments": getting credentials: exec: executable aws failed with exit code 255"
Reproduction Steps
Target
Kubernetes
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
ubuntu
Version
Checklist
trivy --reset
Beta Was this translation helpful? Give feedback.
All reactions