Using Console
Using CLI
aws iam create-user
to create a new user.aws iam create-access-key
command to generate an access key and secret key for the user.aws iam attach-user-policy
command to attach the AdministratorAccess
policy to the user. This will give the user full administrative privileges.aws iam create-virtual-mfa-device
command to create a virtual MFA device.aws iam enable-mfa-device
command to enable MFA for the root account.aws iam delete-access-key
command to delete the access keys for the root account.aws cloudwatch put-metric-alarm
to create an alarm that will trigger if the root account is used to perform any actions in AWS.Using Python
<SNS topic ARN>
with the ARN of the SNS topic where you want to receive alarm notifications.