Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit 18abe10

Browse files
authored
feat: Add outputs block to examples (#28)
1 parent 8541bd5 commit 18abe10

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

clickhouse/examples/multi-shard/main.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,15 @@ module "clickhouse_multi_shard" {
3636
Project = "analytics"
3737
}
3838
}
39+
40+
output "clickhouse_cluster_ips" {
41+
value = module.clickhouse_multi_shard.clickhouse_cluster_ips
42+
}
43+
44+
output "clickhouse_keeper_ips" {
45+
value = module.clickhouse_multi_shard.clickhouse_keeper_ips
46+
}
47+
48+
output "clickhouse_nlb_dns" {
49+
value = module.clickhouse_multi_shard.clickhouse_nlb_dns
50+
}

clickhouse/examples/single-shard/main.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,16 @@ module "clickhouse_single_shard" {
2828
Project = "analytics"
2929
}
3030
}
31+
32+
output "clickhouse_cluster_ips" {
33+
value = module.clickhouse_single_shard.clickhouse_cluster_ips
34+
}
35+
36+
output "clickhouse_keeper_ips" {
37+
value = module.clickhouse_single_shard.clickhouse_keeper_ips
38+
}
39+
40+
output "clickhouse_nlb_dns" {
41+
value = module.clickhouse_single_shard.clickhouse_nlb_dns
42+
}
43+

clickhouse/examples/tls-encryption/main.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,19 @@ module "secure_clickhouse" {
5353
Security = "encrypted"
5454
}
5555
}
56+
57+
output "clickhouse_cluster_ips" {
58+
value = module.secure_clickhouse.clickhouse_cluster_ips
59+
}
60+
61+
output "clickhouse_keeper_ips" {
62+
value = module.secure_clickhouse.clickhouse_keeper_ips
63+
}
64+
65+
output "clickhouse_nlb_dns" {
66+
value = module.secure_clickhouse.clickhouse_nlb_dns
67+
}
68+
69+
output "ca_secret_arn" {
70+
value = module.secure_clickhouse.ca_secret_arn
71+
}

0 commit comments

Comments
 (0)