

# secretsmanager-secret-periodic-rotation
<a name="secretsmanager-secret-periodic-rotation"></a>

Checks if Amazon Secrets Manager secrets have been rotated in the past specified number of days. The rule is NON\$1COMPLIANT if a secret has not been rotated for more than maxDaysSinceRotation number of days. The default value is 90 days.



**Identifier:** SECRETSMANAGER\$1SECRET\$1PERIODIC\$1ROTATION

**Resource Types:** AWS::SecretsManager::Secret

**Trigger type:** Periodic

**Amazon Web Services Region:** All supported Amazon regions

**Parameters:**

maxDaysSinceRotation (Optional)Type: int  
Maximum number of days in which a secret can remain unchanged. The default value is 90 days.

## Amazon CloudFormation template
<a name="w2aac20c16c17b7e1491c19"></a>

To create Amazon Config managed rules with Amazon CloudFormation templates, see [Creating Amazon Config Managed Rules With Amazon CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).