Creating access keys for the root user
Warning
We strongly recommend that you do not create access key pairs for your root user. Because only a few tasks require the root user and you typically perform those tasks infrequently, we recommend signing in to the Amazon Web Services Management Console to perform the root user tasks.
Although we don't recommend it, you can create access keys for your root user so that you can run commands in the Amazon Command Line Interface (Amazon CLI) or use API operations from one of the Amazon SDKs using root user credentials.