Introduce iam_by_principals_conditional (#3649)
* Introduce iam_by_principals_conditional * Add iam_by_principals_conditional to project factory * Update IAM ADR * Update project factory readme * Sync FAST schemas * Update organization schema * Add resman tests for iam_by_principals_conditional * Update PF project-defaults.tf * Update copyright
This commit is contained in:
67
tests/modules/project/examples/iam-bpc.yaml
Normal file
67
tests/modules/project/examples/iam-bpc.yaml
Normal file
@@ -0,0 +1,67 @@
|
||||
# Copyright 2026 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.data.google_storage_project_service_account.gcs_sa[0]:
|
||||
project: test-project
|
||||
user_project: null
|
||||
module.project.google_project.project[0]:
|
||||
auto_create_network: false
|
||||
billing_account: 123456-123456-123456
|
||||
deletion_policy: DELETE
|
||||
effective_labels:
|
||||
goog-terraform-provisioned: 'true'
|
||||
folder_id: '1122334455'
|
||||
labels: null
|
||||
name: test-project
|
||||
org_id: null
|
||||
project_id: test-project
|
||||
tags: null
|
||||
terraform_labels:
|
||||
goog-terraform-provisioned: 'true'
|
||||
timeouts: null
|
||||
module.project.google_project_iam_binding.bindings["iam-bpc:roles/owner-expires_after_2024_12_31"]:
|
||||
condition:
|
||||
- description: Expiring at midnight of 2024-12-31
|
||||
expression: request.time < timestamp("2025-01-01T00:00:00Z")
|
||||
title: expires_after_2024_12_31
|
||||
members:
|
||||
- user:one@example.com
|
||||
project: test-project
|
||||
role: roles/owner
|
||||
module.project.google_project_iam_binding.bindings["iam-bpc:roles/viewer-expires_after_2024_12_31"]:
|
||||
condition:
|
||||
- description: Expiring at midnight of 2024-12-31
|
||||
expression: request.time < timestamp("2025-01-01T00:00:00Z")
|
||||
title: expires_after_2024_12_31
|
||||
members:
|
||||
- user:one@example.com
|
||||
project: test-project
|
||||
role: roles/viewer
|
||||
module.project.google_project_service.project_services["storage.googleapis.com"]:
|
||||
disable_dependent_services: false
|
||||
disable_on_destroy: false
|
||||
project: test-project
|
||||
service: storage.googleapis.com
|
||||
timeouts: null
|
||||
|
||||
counts:
|
||||
google_project: 1
|
||||
google_project_iam_binding: 2
|
||||
google_project_service: 1
|
||||
google_storage_project_service_account: 1
|
||||
modules: 1
|
||||
resources: 5
|
||||
|
||||
outputs: {}
|
||||
Reference in New Issue
Block a user