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 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions