Documentation ¶
Overview ¶
RotateCfApiKey ¶
This AWS lambda function is meant to be use in conjunction with the CfApiKey custom resource and as target of a cloudwatch rule. To integrate into your cloudformation template, use a similar snippet.
```yaml
ApiKeyRotationRule: Type: "AWS::Events::Rule" Properties: Description: Fn::Sub: | { "StackId": "${AWS::StackId}", "OrdinalParameterName": "ApiKeyOrdinal" } ScheduleExpression: "cron(0 6 ? * SUN *)" Targets: - Fn::ImportValue: !Sub ${HyperdriveCore}-CfApiKeyRotateCfApiKeyLambdaArn
```
Click to show internal directories.
Click to hide internal directories.