Skip to content

Commit

Permalink
Use project ID instead of name
Browse files Browse the repository at this point in the history
This fixes deployment when the ID isn't the same as the name, which
is not true in general.

Change-Id: I5f334c87bfee9b27919131bb764f490b3ec589b6
GitOrigin-RevId: 37af8fb
  • Loading branch information
drigz authored and Copybara-Service committed Feb 19, 2019
1 parent b764654 commit b1f50a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bootstrap/cloud/terraform/address.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "google_compute_address" "cloud_robotics" {
name = "cloud-robotics"
project = "${data.google_project.project.name}"
project = "${data.google_project.project.project_id}"
region = "${var.region}"
depends_on = ["google_project_service.compute"]
}
2 changes: 1 addition & 1 deletion src/bootstrap/cloud/terraform/endpoints.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ data "template_file" "map_yaml" {

resource "google_endpoints_service" "map" {
service_name = "map.endpoints.${var.id}.cloud.goog"
project = "${data.google_project.project.name}"
project = "${data.google_project.project.project_id}"
grpc_config = "${data.template_file.map_yaml.rendered}"
protoc_output_base64 = "${base64encode(file("../../../../bazel-bin/src/proto/map/proto_descriptor.pb"))}"
}
Expand Down

0 comments on commit b1f50a0

Please sign in to comment.