How can i enable and disable access key and secret key in CLI?

0

hello, I need to be able to deactivate and activate the access key and secret key automatically from time to time through a CLI script, is this possible? And if it is, how is it done, what commands are used?

Thanks in advance

1 Resposta
3

Yes, you can do this using aws cli. You can run these commands to activate/deactivate access keys:

aws iam update-access-key --access-key-id AKIAIOSFODNN7EXAMPLE --status Inactive --user-name Bob
aws iam update-access-key --access-key-id AKIAIOSFODNN7EXAMPLE --status Active --user-name Bob

See reference docs here

profile pictureAWS
respondido há 2 anos
profile pictureAWS
ESPECIALISTA
avaliado há 2 anos
  • Thanks for the answer, now I have another question, is it possible to condition the activation of the access key? so that it only fires when I have new records in a database in aws timestream?

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