Skip to main content
  1. Docs
  2. Secrets & Configuration
  3. Concepts
  4. Built-in Functions
  5. fn::rotate

fn::rotate

    The fn::rotate built-in function invokes a rotator to rotate secrets.

    Some of a rotator’s inputs may only be evaluated when the environment containing the fn::rotate invocation is rotated. This can be combined with the environments built-in value to fetch managing credentials from other environments that may require additional permissions beyond those given to typical users of an environment. The exact inputs that are rotation-only are dependent on the rotator.

    Declaration

    fn::rotate:
      provider: name
      inputs: inputs
      state: state
    

    Short form

    In addition to the long form syntax, fn::rotate can be invoked using the short form fn::rotate::name:

    fn::rotate::name:
      inputs: inputs
      state: state
    

    Parameters

    PropertyTypeDescription
    namestringThe name of the rotator to use.
    inputsanyThe inputs to the rotator. The exact type is rotator-dependent.
    stateanyThe persistent state for the rotator. This value is managed by the rotator and should not be modified.

    Returns

    The return value of fn::rotate is dependent on the rotator being invoked.