Ensure that all your IAM SSH public keys are rotated every month in order to decrease the likelihood of accidental exposures and protect your AWS CodeCommit repositories against unauthorized access.
This rule can help you with the following compliance standards:
This rule can help you work with the AWS Well-Architected Framework
This rule resolution is part of the Cloud Conformity Security & Compliance tool for AWS
Rotating periodically the SSH keys assigned to your IAM users will significantly reduce the chances that a compromised set of keys can be used without your knowledge to access your private Git repositories hosted with AWS CodeCommit.
To determine if your AWS IAM users hold any outdated (older than 30 days) SSH public keys, perform the following:
To rotate (change) your outdated IAM SSH public keys, you need to perform the following: