Skip to content

Commit

Permalink
feat: data sources
Browse files Browse the repository at this point in the history
  • Loading branch information
wai-wong-edb committed Nov 25, 2024
1 parent 2dde8e2 commit 9241b05
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/data-sources/biganimal_cluster/data-source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ output "storage" {
value = data.biganimal_cluster.this.storage
}

output "wal_storage" {
value = data.biganimal_cluster.this.wal_storage
}

output "superuser_access" {
value = coalesce(data.biganimal_cluster.this.superuser_access, false)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ output "storage" {
value = data.biganimal_faraway_replica.this.storage
}

output "wal_storage" {
value = data.biganimal_faraway_replica.this.wal_storage
}

output "volume_snapshot_backup" {
value = data.biganimal_faraway_replica.this.volume_snapshot_backup
}
1 change: 1 addition & 0 deletions pkg/provider/data_source_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ func (c *clusterDataSource) Schema(ctx context.Context, req datasource.SchemaReq
MarkdownDescription: "Cluster connection service name.",
Computed: true,
},
"wal_storage": resourceWal,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions pkg/provider/data_source_fareplica.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ func (c *FAReplicaData) Schema(ctx context.Context, req datasource.SchemaRequest
},
},
},
"wal_storage": resourceWal,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions pkg/provider/data_source_pgd.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func (p pgdDataSource) Schema(ctx context.Context, req datasource.SchemaRequest,
Description: "Is read-only connections enabled.",
Computed: true,
},
"wal_storage": resourceWal,
},
},
},
Expand Down

0 comments on commit 9241b05

Please sign in to comment.