Refactor vpc-sc support in project module, add support for dry run (#2229)

This commit is contained in:
Ludovico Magnocavallo
2024-04-22 10:28:01 +03:00
committed by GitHub
parent 0454fd681d
commit 309792c559
9 changed files with 162 additions and 65 deletions

View File

@@ -0,0 +1,33 @@
# Copyright 2024 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.project.google_access_context_manager_service_perimeter_dry_run_resource.default["accessPolicies/1234567890/servicePerimeters/b1"]
: perimeter_name: accessPolicies/1234567890/servicePerimeters/b1
timeouts: null
? module.project.google_access_context_manager_service_perimeter_dry_run_resource.default["accessPolicies/1234567890/servicePerimeters/b2"]
: perimeter_name: accessPolicies/1234567890/servicePerimeters/b2
timeouts: null
? module.project.google_access_context_manager_service_perimeter_dry_run_resource.default["accessPolicies/1234567890/servicePerimeters/default"]
: perimeter_name: accessPolicies/1234567890/servicePerimeters/default
timeouts: null
counts:
google_access_context_manager_service_perimeter_dry_run_resource: 3
google_project: 1
google_project_service: 2
modules: 1
resources: 6
outputs: {}

View File

@@ -0,0 +1,27 @@
# Copyright 2024 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.project.google_access_context_manager_service_perimeter_resource.default["accessPolicies/1234567890/servicePerimeters/default"]
: perimeter_name: accessPolicies/1234567890/servicePerimeters/default
timeouts: null
counts:
google_access_context_manager_service_perimeter_resource: 1
google_project: 1
google_project_service: 2
modules: 1
resources: 4
outputs: {}