Ensure that all your IAM SSH public keys are rotated every 90 days in order to decrease the likelihood of accidental exposures and protect your AWS CodeCommit repositories from 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 repositories hosted with AWS CodeCommit.
To determine if your AWS IAM users keep any outdated (older than 90 days) SSH public keys, perform the following:
To rotate (change) your outdated IAM SSH public keys, you need to perform the following: