Skip to content

Commit

Permalink
Update example for google_compute_addresses data source (GoogleCloudP…
Browse files Browse the repository at this point in the history
  • Loading branch information
alzabo authored and joelkattapuram committed Sep 20, 2023
1 parent b9dc7ce commit bd78e90
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ description: |-

List IP addresses in a project. For more information see
the official API [list](https://cloud.google.com/compute/docs/reference/latest/addresses/list) and
[aggregated lsit](https://cloud.google.com/compute/docs/reference/rest/v1/addresses/aggregatedList) documentation.
[aggregated list](https://cloud.google.com/compute/docs/reference/rest/v1/addresses/aggregatedList) documentation.

## Example Usage

```hcl
data "google_compute_addresses" "my_addresses" {
data "google_compute_addresses" "test" {
filter = "name:test-*"
}
Expand All @@ -24,7 +24,7 @@ resource "google_dns_record_set" "frontend" {
managed_zone = google_dns_managed_zone.prod.name
rrdatas = data.google_compute_addresses.my_addresses[*].address
rrdatas = data.google_compute_addresses.test.addresses[*].address
}
resource "google_dns_managed_zone" "prod" {
Expand Down

0 comments on commit bd78e90

Please sign in to comment.