Skip to content

Commit a4209fa

Browse files
lock provider versions
1 parent 250f6ea commit a4209fa

8 files changed

Lines changed: 24 additions & 25 deletions

File tree

cdn/module/main.tf

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ locals {
6363
}
6464
}
6565

66-
6766
# Enable the required services
6867
resource "google_project_service" "required_services" {
6968
for_each = toset(local.required_services)
@@ -265,7 +264,7 @@ resource "google_compute_url_map" "https_url_map" {
265264

266265
# Lookup the Managed Zone for the CDN Domain
267266
data "google_dns_managed_zone" "cdn_zone" {
268-
name = var.dns_zone_name
267+
name = var.dns_zone_name
269268
project = var.project_id
270269

271270
depends_on = [google_project_service.required_services]
@@ -277,17 +276,17 @@ resource "google_dns_record_set" "cdn_dns_record" {
277276
managed_zone = data.google_dns_managed_zone.cdn_zone.name
278277
type = "A"
279278
rrdatas = [google_compute_global_address.cdn_ip.address]
280-
ttl = var.domain_ttl
281-
project = var.project_id
279+
ttl = var.domain_ttl
280+
project = var.project_id
282281
}
283282

284283
resource "google_dns_record_set" "www_cdn_dns_record" {
285284
name = endswith(var.domain_name, ".") ? "www.${var.domain_name}" : "www.${var.domain_name}."
286285
managed_zone = data.google_dns_managed_zone.cdn_zone.name
287286
type = "A"
288287
rrdatas = [google_compute_global_address.cdn_ip.address]
289-
ttl = var.domain_ttl
290-
project = var.project_id
288+
ttl = var.domain_ttl
289+
project = var.project_id
291290
}
292291

293292
resource "google_certificate_manager_certificate" "cdn_cert" {

cdn/module/providers.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ terraform {
22
required_providers {
33
google-beta = {
44
source = "hashicorp/google-beta"
5-
version = "~> 6.17.0"
5+
version = "7.4.0"
66
}
77

88
corefunc = {
99
source = "northwood-labs/corefunc"
10-
version = "~> 1.4"
10+
version = "2.1.0"
1111
}
1212
}
1313
}

cdn/module/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ variable "region" {
2626
}
2727

2828
variable "domain_name" {
29-
type = string
29+
type = string
3030
description = "New A records will be created in the hosted zone to establish this domain name for the CDN"
3131
}
3232

3333
variable "dns_zone_name" {
34-
type = string
34+
type = string
3535
description = "The name of the existing Cloud DNS zone that you would like your domain to be configured in"
3636
}
3737

3838
variable "domain_ttl" {
39-
type = string
39+
type = string
4040
description = "The time to live (TTL) for the A record created (in seconds). Defaults to 300 seconds"
41-
default = 300
41+
default = 300
4242
}

cloudrun/module/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ resource "random_password" "event_token" {
8181
resource "google_cloud_run_v2_service" "service" {
8282
name = replace(var.suga.name, "_", "-")
8383

84-
location = var.region
85-
project = var.project_id
86-
launch_stage = "GA"
87-
ingress = var.ingress
84+
location = var.region
85+
project = var.project_id
86+
launch_stage = "GA"
87+
ingress = var.ingress
8888

8989
deletion_protection = false
9090

cloudrun/module/providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
docker = {
44
source = "kreuzwerker/docker"
5-
version = "3.6.0"
5+
version = "3.6.2"
66
}
77
}
88
}

cloudrun/module/variables.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ variable "suga" {
1111
}
1212

1313
variable "environment_variables" {
14-
type = map(string)
15-
description = "Environment variables to set on the lambda function"
16-
default = {}
14+
type = map(string)
15+
description = "Environment variables to set on the lambda function"
16+
default = {}
1717
}
1818
# TODO: review defaults
1919
variable "memory_mb" {
@@ -75,7 +75,7 @@ variable "container_port" {
7575
}
7676

7777
variable "ingress" {
78-
description = "The ingress for this Service. Possible values are INGRESS_TRAFFIC_ALL, INGRESS_TRAFFIC_INTERNAL_ONLY, or INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"
79-
type = string
80-
default = "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"
78+
description = "The ingress for this Service. Possible values are INGRESS_TRAFFIC_ALL, INGRESS_TRAFFIC_INTERNAL_ONLY, or INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"
79+
type = string
80+
default = "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"
8181
}

serviceaccount/module/providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
corefunc = {
44
source = "northwood-labs/corefunc"
5-
version = "~> 1.4"
5+
version = "2.1.0"
66
}
77
}
88
}

storage/module/providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
corefunc = {
44
source = "northwood-labs/corefunc"
5-
version = "~> 1.4"
5+
version = "2.1.0"
66
}
77
}
88
}

0 commit comments

Comments
 (0)