Identify and deactivate any unnecessary IAM SSH public keys used to authenticate to AWS CodeCommit repositories. Amazon allows you to assign maximum two active SSH keys, however having two keys is recommended only during the key rotation process. As security best practice, Cloud Conformity strongly recommends deactivating the old public key once the new one is created so only one SSH key can remain active for the selected IAM user.
Removing unnecessary IAM SSH public keys will lower the risk of unauthorized access to your AWS CodeCommit repositories and adhere to AWS IAM security best practices.
To determine if your AWS IAM users keep unnecessary SSH public keys, perform the following:
To deactivate any unnecessary IAM SSH public keys used for AWS CodeCommit repository access, perform the following: