Skip to content

Commit d451940

Browse files
authored
chore: update examples to use registry (#397)
1 parent 0127723 commit d451940

File tree

14 files changed

+35
-15
lines changed

14 files changed

+35
-15
lines changed

examples/cdn-policy/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ module "mig" {
8282
}
8383

8484
module "gce-lb-http" {
85-
source = "../../"
85+
source = "terraform-google-modules/lb-http/google"
86+
version = "~> 10.0"
87+
8688
name = "mig-http-lb"
8789
project = var.project_id
8890
target_tags = [google_compute_network.default.name]

examples/certificate-map/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ locals {
6464
}
6565

6666
module "gce-lb-https" {
67-
source = "../../"
67+
source = "terraform-google-modules/lb-http/google"
68+
version = "~> 10.0"
6869
name = var.network_name
6970
project = var.project_id
7071
firewall_networks = [google_compute_network.default.self_link]

examples/cloudrun/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ provider "google-beta" {
2424

2525
# [START cloudloadbalancing_ext_http_cloudrun]
2626
module "lb-http" {
27-
source = "../../modules/serverless_negs"
27+
source = "terraform-google-modules/lb-http/google//modules/serverless_negs"
28+
version = "~> 10.0"
29+
2830
name = var.lb_name
2931
project = var.project_id
3032

examples/cross-project-mig-backend/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818
# [START cloudloadbalancing_ext_http_gce_shared_vpc]
1919
module "gce-lb-http" {
20-
source = "../../"
20+
source = "terraform-google-modules/lb-http/google"
21+
version = "~> 10.0"
22+
2123
name = "ci-crossproject-lb"
2224
project = var.project_id
2325
target_tags = ["allow-cross-project-mig"]

examples/dynamic-backend/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ resource "google_compute_managed_ssl_certificate" "frontend" {
3131
}
3232

3333
module "load_balancer" {
34-
source = "../../modules/dynamic_backends"
34+
source = "terraform-google-modules/lb-http/google//modules/dynamic_backends"
35+
version = "~> 10.0"
3536

3637
name = "dynamic-backend-lb"
3738
project = var.project

examples/https-gke/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ provider "google-beta" {
2525
data "google_client_config" "current" {}
2626

2727
module "gce-lb-https" {
28-
project = var.project
29-
source = "../../"
28+
project = var.project
29+
source = "terraform-google-modules/lb-http/google"
30+
version = "~> 10.0"
31+
3032
name = var.name
3133
ssl = true
3234
private_key = tls_private_key.example.private_key_pem

examples/https-redirect/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ module "mig" {
9292

9393
# [START cloudloadbalancing_ext_http_gce_http_redirect]
9494
module "gce-lb-http" {
95-
source = "../../"
95+
source = "terraform-google-modules/lb-http/google"
96+
version = "~> 10.0"
9697
name = "ci-https-redirect"
9798
project = var.project
9899
target_tags = [var.network_name]

examples/mig-nat-http-lb/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ module "mig" {
9191
}
9292

9393
module "gce-lb-http" {
94-
source = "../../"
94+
source = "terraform-google-modules/lb-http/google"
95+
version = "~> 10.0"
9596
name = "mig-http-lb"
9697
project = var.project
9798
target_tags = [var.network_name]

examples/multi-backend-multi-mig-bucket-https-lb/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ locals {
113113

114114
# [START cloudloadbalancing_ext_http_gce_plus_bucket]
115115
module "gce-lb-https" {
116-
source = "../../"
116+
source = "terraform-google-modules/lb-http/google"
117+
version = "~> 10.0"
117118
name = var.network_name
118119
project = var.project
119120
target_tags = [

examples/multi-mig-http-lb/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ module "cloud-nat-group2" {
6969

7070
# [START cloudloadbalancing_ext_http_gce]
7171
module "gce-lb-http" {
72-
source = "../../"
72+
source = "terraform-google-modules/lb-http/google"
73+
version = "~> 10.0"
7374
name = var.network_prefix
7475
project = var.project
7576
target_tags = [

0 commit comments

Comments
 (0)