Get AWS Keys at billing portal

0

Hi,

in this api page https://portal.aws.amazon.com/billing/rest/v1.0/account there is some information like

{"registrationDate":XXXXXXXX,"customerId":"XXXXX","accountStatus":"Active","accountRole":"Payer","accountId":"XXXXX","userId":"","userName":"","fullName":"XXX","awsAccessKey":"","awsSecretKey":"","awsSecurityToken":"","iamuser":true}

I need value params awsAccessKey":"","awsSecretKey":"","awsSecurityToken but it's empty how can I get it in this Api

1개 답변
0

You need to create new awsAccessKey and awsSecretKey manually using the console (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html). for CLI (https://docs.aws.amazon.com/cli/latest/reference/iam/create-access-key.html). Getting security and secrete keys using the given is not a very secure way to access aws. And even if there is a way then the link will not work bcz both keys can be generated or found in the IAM console, not in billing (As per URL looks like it's directing in billing, not IAM). I hope it makes sense.

VISI
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠