Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit bb68acb

Browse files
committed
feat: convert Terraform configuration from plain files to modules (#1054)
Replace 'loging' with 'login' in tutorial and README instructions and adds "create" command in markdown. (#1047) Fixes errors (#1045) and refactors use of kustomize path in CLI. Makes GKE+ASM provisioning a module. Makes Online Boutique provisioning a module. Creates a new 'main.tf' TF configuration to provision modules sequentially, because of the hard dependency there is no effective way to paralelize it. Refactors "online-boutique" to replace with "microservices-demo".
1 parent 6153eae commit bb68acb

File tree

23 files changed

+234
-105
lines changed

23 files changed

+234
-105
lines changed
File renamed without changes.

provisioning/terraform/asm.tf

Lines changed: 0 additions & 48 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

provisioning/terraform/monitoring/slo_services.tf renamed to provisioning/terraform/cloud-ops/slo_services.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,15 @@ resource "google_monitoring_slo" "service_latency" {
112112
]
113113
}
114114

115+
data "google_project" "info" {
116+
project_id = var.gcp_project_id
117+
}
118+
115119
module "slo_service" {
116120
count = length(local.slo_services)
117121
source = "./slo_service"
118122

119-
project_number = var.gcp_project_number
123+
project_number = data.google_project.info.number
120124
name = local.slo_services[count.index].id
121125
}
122126

File renamed without changes.

0 commit comments

Comments
 (0)