cloud-foundation-fabric/tests/modules/cloud_run/examples/secrets.yaml

65 lines
1.9 KiB
YAML
Raw Normal View History

# 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.cloud_run.google_cloud_run_service.service:
2023-08-07 07:46:20 -07:00
autogenerate_revision_name: false
location: region
metadata:
- {}
name: hello
project: project-id
template:
- metadata:
2023-08-07 07:46:20 -07:00
- {}
spec:
- containers:
- args: null
command: null
env: []
env_from: []
image: us-docker.pkg.dev/cloudrun/container/hello
liveness_probe: []
volume_mounts:
- mount_path: /credentials
name: credentials
working_dir: null
volumes:
2023-06-12 11:58:33 -07:00
- empty_dir: []
name: credentials
secret:
- default_mode: null
items:
2023-11-17 03:49:26 -08:00
- key: latest
mode: null
path: v1.txt
2023-11-17 03:49:26 -08:00
module.cloud_run.google_service_account.service_account[0]:
account_id: tf-cr-hello
project: project-id
module.secret-manager.google_secret_manager_secret.default["credentials"]:
project: project-id
secret_id: credentials
module.secret-manager.google_secret_manager_secret_iam_binding.default["credentials.roles/secretmanager.secretAccessor"]:
condition: []
role: roles/secretmanager.secretAccessor
counts:
google_cloud_run_service: 1
2023-11-17 03:49:26 -08:00
google_secret_manager_secret: 1
google_secret_manager_secret_iam_binding: 1
google_service_account: 1