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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南