Skip to content

Commit 19d2215

Browse files
kunzesesce-taid
authored andcommitted
feat: expose the name of the GCS bucket as output in the server module
PiperOrigin-RevId: 818865568
1 parent 9bf4e87 commit 19d2215

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

modules/server/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ For example usage, please check the following [example](../../examples/simple/ma
3838

3939
| Name | Description |
4040
|------|-------------|
41+
| <a name="output_abfs_bucket_name"></a> [abfs\_bucket\_name](#output\_abfs\_bucket\_name) | The ABFS GCS bucket name |
4142
| <a name="output_abfs_server_name"></a> [abfs\_server\_name](#output\_abfs\_server\_name) | The name of the ABFS server instance |
4243
| <a name="output_abfs_spanner_database"></a> [abfs\_spanner\_database](#output\_abfs\_spanner\_database) | The ABFS Spanner database object |
4344
| <a name="output_abfs_spanner_database_schema_file"></a> [abfs\_spanner\_database\_schema\_file](#output\_abfs\_spanner\_database\_schema\_file) | The ABFS Spanner database schema file |

modules/server/metadata.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ spec:
121121
varType: string
122122
defaultValue: ""
123123
outputs:
124+
- name: abfs_bucket_name
125+
description: The ABFS GCS bucket name
124126
- name: abfs_server_name
125127
description: The name of the ABFS server instance
126128
- name: abfs_spanner_database

modules/server/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
output "abfs_bucket_name" {
16+
description = "The ABFS GCS bucket name"
17+
value = data.google_storage_bucket.abfs.name
18+
}
19+
1520
output "abfs_server_name" {
1621
description = "The name of the ABFS server instance"
1722
value = google_compute_instance.abfs_server.name

0 commit comments

Comments
 (0)