Skip to content

Commit

Permalink
adding data source for identity pool (#4134) (#7704)
Browse files Browse the repository at this point in the history
* adding data source for identity pool

* set datasource id when reading

* Add beta warning to docs

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Nov 5, 2020
1 parent 51431b1 commit 2d4db7f
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/4134.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-datasource
`google_iam_workload_identity_pool`
```
1 change: 1 addition & 0 deletions google/data_source_iam_beta_workload_identity_pool.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_iam_beta_workload_identity_pool_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package google
38 changes: 38 additions & 0 deletions website/docs/d/iam_workload_identity_pool.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
subcategory: "Cloud IAM"
layout: "google"
page_title: "Google: google_iam_workload_identity_pool"
sidebar_current: "docs-google-datasource-iam-workload-identity-pool"
description: |-
Get a IAM workload identity pool from Google Cloud
---

# google\_iam\_workload_\identity\_pool

Get a IAM workload identity pool from Google Cloud by its id.

~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources.

## Example Usage

```tf
data "google_iam_workload_identity_pool" "foo" {
workload_identity_pool_id = "foo-pool"
}
```

## Argument Reference

The following arguments are supported:

* `workload_identity_pool_id` - (Required) The id of the pool which is the
final component of the resource name.

- - -

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

## Attributes Reference
See [google_iam_workload_identity_pool](https://www.terraform.io/docs/providers/google/r/iam_workload_identity_pool.html) resource for details of all the available attributes.
10 changes: 10 additions & 0 deletions website/google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,16 @@
<li>
<a href="#">Cloud IAM</a>
<ul class="nav">
<li>
<a href="#">Data Sources</a>
<ul class="nav nav-auto-expand">

<li>
<a href="/docs/providers/google/d/iam_workload_identity_pool">google_iam_workload_identity_pool</a>
</li>

</ul>
</li>
<li>
<a href="#">Resources</a>
<ul class="nav nav-auto-expand">
Expand Down

0 comments on commit 2d4db7f

Please sign in to comment.