Skip to content

Commit

Permalink
Add docs for Secret Manager to sidebar (#3127)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson authored Feb 13, 2020
1 parent 4033f0b commit 9d8ea2d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/terraform/examples/secret_version_basic.tf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resource "google_secret_manager_secret" "secret-basic" {
resource "google_secret_manager_secret_version" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta

secret = google_secret_manager_secret.secret-basic.name
secret = google_secret_manager_secret.secret-basic.id

secret_data = "<%= ctx[:vars]['data'] %>"
}
28 changes: 28 additions & 0 deletions third_party/terraform/website-compiled/google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@
<li<%%= sidebar_current("docs-google-datasource-project-organization-policy") %>>
<a href="/docs/providers/google/d/datasource_google_project_organization_policy.html">google_project_organization_policy</a>
</li>
<% unless version == 'ga' -%>
<li<%%= sidebar_current("docs-google-datasource-secret-manager-secret-version") %>>
<a href="/docs/providers/google/d/datasource_google_secret_manager_secret_version.html">google_secret_manager_secret_version</a>
</li>
<% end -%>
<li<%%= sidebar_current("docs-google-datasource-service-account") %>>
<a href="/docs/providers/google/d/datasource_google_service_account.html">google_service_account</a>
</li>
Expand Down Expand Up @@ -1271,6 +1276,29 @@
</ul>
</li>

<% unless version == 'ga' %>
<li<%%= sidebar_current("docs-google-secret-manager") %>>
<a href="#">Google Secret Manager Resources</a>
<ul class="nav nav-visible">
<li<%%= sidebar_current("docs-google-secret-manager-secret-x") %>>
<a href="/docs/providers/google/r/secret_manager_secret.html">google_secret_manager_secret</a>
</li>
<li<%%= sidebar_current("docs-google-secret-manager-secret-iam") %>>
<a href="/docs/providers/google/r/secret_manager_secret_iam.html">google_secret_manager_secret_iam_member</a>
</li>
<li<%%= sidebar_current("docs-google-secret-manager-secret-iam") %>>
<a href="/docs/providers/google/r/secret_manager_secret_iam.html">google_secret_manager_secret_iam_binding</a>
</li>
<li<%%= sidebar_current("docs-google-secret-manager-secret-iam") %>>
<a href="/docs/providers/google/r/secret_manager_secret_iam.html">google_secret_manager_secret_iam_policy</a>
</li>
<li<%%= sidebar_current("docs-google-secret-manager-secret-version") %>>
<a href="/docs/providers/google/r/secret_manager_secret_version.html">google_secret_manager_secret_version</a>
</li>
</ul>
</li>
<% end -%>

<li<%%= sidebar_current("docs-google-service-networking") %>>
<a href="#">Google Service Networking Resources</a>
<ul class="nav nav-visible">
Expand Down

0 comments on commit 9d8ea2d

Please sign in to comment.