| 1 |
terraform { |
| 2 |
source = "${get_repo_root()}/deployment/modules/gcp//cloudbuild" |
| 3 |
} |
| 4 |
|
| 5 |
locals { |
| 6 |
project_id = "trillian-tessera" |
| 7 |
region = "us-central1" |
| 8 |
env = path_relative_to_include() |
| 9 |
} |
| 10 |
|
| 11 |
remote_state { |
| 12 |
backend = "gcs" |
| 13 |
|
| 14 |
config = { |
| 15 |
project = local.project_id |
| 16 |
location = local.region |
| 17 |
bucket = "${local.project_id}-cloudbuild-${local.env}-terraform-state" |
| 18 |
prefix = "${path_relative_to_include()}-terraform.tfstate" |
| 19 |
|
| 20 |
gcs_bucket_labels = { |
| 21 |
name = "terraform_state_storage" |
| 22 |
} |
| 23 |
} |
| 24 |
} |