When using AWS CLI, there is a major security risk that AWS warns about. What is that risk and how to mitigate that risk?
Major security risk that AWS warns is the storage of credentials (Access Key ID and Secret Access Key) on local machines and in source code. If the machine is compromised, an attacker gaining access to these credentials can immediately obtain them. By prioritizing temporary credentials and applying the principle of lease privilege, we can mitigate the security risk associated with using the AWS CLI.