Skip to content

Commit 9d57afb

Browse files
Android Build Filesystem (ABFS) Teamsce-taid
authored andcommitted
refined output with gcloud command for spanner instance
PiperOrigin-RevId: 780572020
1 parent eee3dc7 commit 9d57afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/simple/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ output "license_information" {
2323

2424
output "spanner_database_schema_creation" {
2525
description = "The CLI command for creating the Spanner database schema"
26-
value = "gcloud --project ${data.google_project.project.project_id} spanner databases ddl update --instance ${module.abfs_server.abfs_spanner_instance.name} ${module.abfs_server.abfs_spanner_database.name} --ddl-file ${path.module}/../../files/schemas/0.0.31-schema.sql"
26+
value = "SCHEMA_FILE=0.0.31-schema.sql; curl -O https://raw.githubusercontent.com/terraform-google-modules/terraform-google-abfs/refs/heads/main/files/schemas/$SCHEMA_FILE; gcloud --project ${data.google_project.project.project_id} spanner databases ddl update --instance ${module.abfs_server.abfs_spanner_instance.name} ${module.abfs_server.abfs_spanner_database.name} --ddl-file $SCHEMA_FILE; rm $SCHEMA_FILE"
2727
}

0 commit comments

Comments
 (0)