Custom solution for rotating root account

0

How to design a custom solution to automatically rotate root account passwords for all AWS accounts? Below is a reference provided by AWS that is supposed to record the API calls - https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-aws-console-sign-in-events.html#cloudtrail-root-password-changed

However, it is not getting recorded in the cloudtrail logs.

AWS
已提问 1 年前363 查看次数
1 回答
2

I don't think it is possible to change the password for the root user automatically, as it is not supported by the AWS CLI or SDK.
Changes can only be made from the management console.
https://docs.aws.amazon.com/accounts/latest/reference/root-user-password.html

This task isn't supported in the AWS CLI or by an API operation from one of the AWS SDKs. You can perform this task only by using the AWS Management Console.

profile picture
专家
已回答 1 年前
profile picture
专家
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则