Skip to content

Commit

Permalink
Generate documentation and version release
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabil-Lahssini committed Sep 27, 2023
1 parent 402619c commit d46e30e
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.1
0.3.2
47 changes: 47 additions & 0 deletions docs/data-sources/public_ip_addresses.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
page_title: "looker_public_ip_addresses Data Source - terraform-provider-looker"
subcategory: ""
description: |-
---
# looker_public_ip_addresses (Data Source)

## Example Usage
```terraform
data "looker_public_ip_addresses" "ips" {
}
resource "local_file" "file" {
filename = "test.txt"
content = data.looker_public_ip_addresses.ips.public_ips[0]
}
```
## Example Output
```terraform
% terraform show
# data.looker_public_ip_addresses.ips:
data "looker_public_ip_addresses" "ips" {
id = "-"
public_ips = [
"52.200.xxx.xxx",
"52.200.xx.xxx",
"34.200.xxx.xxx",
]
}
# local_file.file:
resource "local_file" "file" {
content = "52.200.xxx.xxx"
...
filename = "test.txt"
id = "196847cc15ee92bdd41d2b078ecd7bd68780a3a2"
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `id` (String) The ID of this resource.
- `public_ips` (List of String) Egress IP addresses.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
data "looker_public_ip_addresses" "ips" {

}

resource "local_file" "file" {
filename = "test.txt"
content = data.looker_public_ip_addresses.ips.public_ips[0]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
% terraform show
# data.looker_public_ip_addresses.ips:
data "looker_public_ip_addresses" "ips" {
id = "-"
public_ips = [
"52.200.xxx.xxx",
"52.200.xx.xxx",
"34.200.xxx.xxx",
]
}

# local_file.file:
resource "local_file" "file" {
content = "52.200.xxx.xxx"
...
filename = "test.txt"
id = "196847cc15ee92bdd41d2b078ecd7bd68780a3a2"
}
5 changes: 3 additions & 2 deletions internal/provider/dataSource_public_ips.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ func dataSourcePublicEgressIps() *schema.Resource {
Computed: true,
},
"public_ips": {
Type: schema.TypeList,
Computed: true,
Type: schema.TypeList,
Computed: true,
Description: "Egress IP addresses.",
Elem: &schema.Schema{
Type: schema.TypeString,
},
Expand Down

0 comments on commit d46e30e

Please sign in to comment.