google_secret_manager_secret_version

Get the value and metadata from a Secret Manager secret version. For more information see the official documentation and API. If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the google_secret_manager_secret_version_access datasource.

Example Usage

data "google_secret_manager_secret_version" "basic" {
  secret = "my-secret"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported: