Skip to content

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 depend on the rotator; see Managing credentials and rotate-only inputs for more information.

Declaration ​

yaml
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:

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

Parameters ​

PropertyTypeDescription
providerstringThe name of the rotator to use. This must be a string literal. In the short form, the name is part of the function key (fn::rotate::name) and this key is omitted.
inputsanyThe inputs to the rotator. This property is required. The exact type is rotator-dependent.
stateobjectThe persistent state for the rotator. This property is optional and must be an object literal when present. The rotator manages this value, so you should not modify it.

Returns ​

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

Content from the official Pulumi documentation (github.com/pulumi/docs).