rotatecfapikey

command
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

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

```

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL