Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add runtimeconfig variable data source #8436

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/4475.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-datasource
`google_compute_new_datasource`
```
1 change: 1 addition & 0 deletions google/data_source_runtimeconfig_variable.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package google
1 change: 1 addition & 0 deletions google/data_source_runtimeconfig_variable_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package google
2 changes: 1 addition & 1 deletion website/docs/d/runtimeconfig_config.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ data "google_runtimeconfig_config" "run-service" {

The following arguments are supported:

* `name` - (Required) The name of the Cloud Run Service.
* `name` - (Required) The name of the Runtime Configurator configuration.

- - -

Expand Down
41 changes: 41 additions & 0 deletions website/docs/d/runtimeconfig_variable.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
subcategory: "Runtime Configurator"
layout: "google"
page_title: "Google: google_runtimeconfig_variable"
sidebar_current: "docs-google-datasource-runtimeconfig-variable"
description: |-
Get information about a Google Cloud RuntimeConfig varialbe.
---

# google\_runtimeconfig\_variable

To get more information about RuntimeConfigs, see:

* [API documentation](https://cloud.google.com/deployment-manager/runtime-configurator/reference/rest/v1beta1/projects.configs)
* How-to Guides
* [Runtime Configurator Fundamentals](https://cloud.google.com/deployment-manager/runtime-configurator/)

## Example Usage

```hcl
data "google_runtimeconfig_variable" "run-service" {
parent = "my-service"
name = "prod-variables/hostname"
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) The name of the Runtime Configurator configuration.
* `parent` - (Required) The name of the RuntimeConfig resource containing this variable.

- - -

* `project` - (Optional) The project in which the resource belongs. If it
is not provided, the provider project is used.

## Attributes Reference

See [google_runtimeconfig_variable](https://www.terraform.io/docs/providers/google/r/runtimeconfig_variable.html#argument-reference) resource for details of the available attributes.
4 changes: 4 additions & 0 deletions website/google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2596,6 +2596,10 @@
<a href="/docs/providers/google/d/runtimeconfig_config.html">google_runtimeconfig_config</a>
</li>

<li>
<a href="/docs/providers/google/d/runtimeconfig_variable.html">google_runtimeconfig_variable</a>
</li>

</ul>
</li>
<li>
Expand Down