Skip to content

Commit 4c6fb6c

Browse files
Android Build Filesystem (ABFS) Teamsce-taid
authored andcommitted
- providing terraform.tf with backend example
- non-local referencing of modules PiperOrigin-RevId: 778551543
1 parent b327a0d commit 4c6fb6c

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

examples/simple/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ moved {
2323
}
2424

2525
module "abfs_server" {
26-
source = "../../modules/server"
26+
source = "github.com/terraform-google-modules/terraform-google-abfs//modules/server?ref=v0.5.0"
2727

2828
project_id = data.google_project.project.project_id
2929
zone = var.zone
@@ -36,7 +36,7 @@ module "abfs_server" {
3636
}
3737

3838
module "abfs_uploaders" {
39-
source = "../../modules/uploaders"
39+
source = "github.com/terraform-google-modules/terraform-google-abfs//modules/uploaders?ref=v0.5.0"
4040

4141
project_id = data.google_project.project.project_id
4242
zone = var.zone

examples/simple/terraform.tf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
terraform {
16+
required_version = ">= 1.9.6"
17+
required_providers {
18+
google = {
19+
source = "hashicorp/google"
20+
version = "~> 6.11.0"
21+
}
22+
}
23+
# grant Storage Object Admin role to the Google Identity invoking Terraform
24+
# backend "gcs" {
25+
# bucket = "YOUR_BUCKET"
26+
# # folder in the bucket (will be created) to store the .tfstate
27+
# prefix = "terraform/abfs"
28+
# }
29+
}

0 commit comments

Comments
 (0)