Skip to content

Data Source: awsSecretsmanagerSecretRotation

Retrieve information about a Secrets Manager secret rotation. To retrieve secret metadata, see the awsSecretsmanagerSecret data source. To retrieve a secret value, see the awsSecretsmanagerSecretVersion data source.

Example Usage

Retrieve Secret Rotation Configuration

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsSecretsmanagerSecretRotation.DataAwsSecretsmanagerSecretRotation(
  this,
  "example",
  {
    secretId: "${data.aws_secretsmanager_secret.example.id}",
  }
);

Argument Reference

  • secretId - (Required) Specifies the secret containing the version that you want to retrieve. You can specify either the ARN or the friendly name of the secret.

Attributes Reference

  • rotationEnabled - ARN of the secret.
  • rotationLambdaArn - Decrypted part of the protected secret information that was originally provided as a string.
  • rotationRules - Decrypted part of the protected secret information that was originally provided as a binary. Base64 encoded.