Fix tftest and format

This commit is contained in:
Julio Diez 2023-01-26 17:56:20 +01:00
parent 793596c61d
commit 4d6561712e
2 changed files with 37 additions and 2 deletions

View File

@ -451,7 +451,7 @@ module "glb-0" {
{ backend = "neg-0" }
]
health_checks = []
port_name = "http"
port_name = "http"
}
}
# with a single serverless NEG the implied default health check is not needed
@ -475,7 +475,7 @@ module "glb-0" {
}
}
}
# tftest ...
# tftest modules=1 resources=6 inventory=https-sneg.yaml
```
### URL Map

View File

@ -0,0 +1,35 @@
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
module.glb-0.google_compute_backend_service.default["default"]:
port_name: http
protocol: HTTPS
module.glb-0.google_compute_global_forwarding_rule.default:
load_balancing_scheme: EXTERNAL
port_range: '443'
module.glb-0.google_compute_region_network_endpoint_group.serverless["neg-0"]:
cloud_run:
- service: hello
tag: null
url_mask: null
counts:
google_compute_backend_service: 1
google_compute_global_forwarding_rule: 1
google_compute_managed_ssl_certificate: 1
google_compute_region_network_endpoint_group: 1
google_compute_target_https_proxy: 1
google_compute_url_map: 1