output "rotation_topic" { description = "Rotation reminders arrive here. Subscribe whatever makes the new version." value = google_pubsub_topic.rotate.id } output "verify" { description = "Reads, a refused read, the alert, and a temporary grant ending." value = <<-EOT printf '%s' "" | gcloud secrets versions add ${var.secret_id} --project ${var.project_id} --data-file=- gcloud secrets versions access latest --secret ${var.secret_id} --project ${var.project_id} --impersonate-service-account # succeeds gcloud secrets versions access latest --secret ${var.secret_id} --project ${var.project_id} # as a member not listed here: the unexpected-read alert fires, whether a project-wide role let the read through or it was refused After a temporary grant's time passes, the same read as that member is refused. EOT }