Split Cloud Function module in separate v1 and v2 modules (#1450)
* split v1 * v2 * blueprints * remove _http
This commit is contained in:
committed by
GitHub
parent
604ca5afd8
commit
bd3296bc46
29
tests/modules/cloud_function_v2/examples/iam.yaml
Normal file
29
tests/modules/cloud_function_v2/examples/iam.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
# 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.cf-http.google_cloudfunctions2_function_iam_binding.default["roles/cloudfunctions.invoker"]:
|
||||
cloud_function: test-cf-http
|
||||
condition: []
|
||||
location: europe-west1
|
||||
members:
|
||||
- allUsers
|
||||
project: my-project
|
||||
role: roles/cloudfunctions.invoker
|
||||
|
||||
counts:
|
||||
google_cloudfunctions2_function: 1
|
||||
google_storage_bucket_object: 1
|
||||
modules: 1
|
||||
resources: 3
|
||||
@@ -0,0 +1,25 @@
|
||||
# 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.cf-http-one.google_storage_bucket_object.bundle:
|
||||
source: /tmp/bundle-my-project-test-cf-http-one.zip
|
||||
module.cf-http-two.google_storage_bucket_object.bundle:
|
||||
source: /tmp/bundle-my-project-test-cf-http-two.zip
|
||||
|
||||
counts:
|
||||
google_cloudfunctions2_function: 2
|
||||
google_storage_bucket_object: 2
|
||||
modules: 2
|
||||
resources: 4
|
||||
Reference in New Issue
Block a user