output "secret_arn" { description = "Give this to the readers. They also need secretsmanager:GetSecretValue on it in their own role policy." value = aws_secretsmanager_secret.this.arn } output "verify" { description = "Rotation, a refused read, and the alert." value = <<-EOT aws secretsmanager rotate-secret --secret-id ${var.name} # a new version takes AWSCURRENT aws secretsmanager get-secret-value --secret-id ${var.name} --query VersionId # as a reader: succeeds aws secretsmanager get-secret-value --secret-id ${var.name} # as an administrator not listed: AccessDenied, and the read-refused alarm fires EOT }