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 Resposta
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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas