Skip to content

Commit 2d09777

Browse files
authored
Merge pull request #591 from lsst/tickets/DM-49593
Explicitly specify project/location for quota rules, try network_self…
2 parents d1e615e + f1839e7 commit 2d09777

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

environment/deployments/science-platform/env/dev.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ activate_apis = [
142142
]
143143

144144
# Increase this number to force Terraform to update the dev environment.
145-
# Serial: 31
145+
# Serial: 32

environment/deployments/science-platform/netapp_volumes.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module "netapp-volumes" {
5454
for voldef in var.netapp_definitions : "${voldef.name}" => voldef
5555
})
5656
source = "../../../modules/netapp_volumes"
57-
network = module.project_factory.network_name
57+
network = module.project_factory.network.network_id
5858
project = module.project_factory.project_id
5959
location = var.subnets[0].subnet_region
6060
labels = {

modules/netapp_volumes/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ resource "google_netapp_backup_policy" "instance" {
130130

131131
# Disabled if the default quota is not set
132132
resource "google_netapp_volume_quota_rule" "default_user_quota" {
133-
133+
project = var.project
134+
location = var.location
134135
count = var.definition.default_user_quota_mib == null ? 0 : 1
135136

136137
name = "${var.definition.name}-default-quota"
@@ -148,7 +149,8 @@ resource "google_netapp_volume_quota_rule" "individual_user_quota" {
148149
for_each = tomap({
149150
for quota in var.definition.override_user_quotas : "${quota.uid}" => quota
150151
})
151-
152+
project = var.project
153+
location = var.location
152154
depends_on = [google_netapp_volume.instance]
153155
type = "INDIVIDUAL_USER_QUOTA"
154156
labels = var.labels

0 commit comments

Comments
 (0)