File tree Expand file tree Collapse file tree 8 files changed +14
-15
lines changed
examples/automatic-labelling-from-repository Expand file tree Collapse file tree 8 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ compressed and uploaded as a Cloud Storage bucket object which will be
99leveraged by the function.
1010
1111Alternatively, the
12- [ function-sourced-from- repository submodule] [ f6n-sourced-from-r8y-s7e ]
12+ [ repository-function submodule] [ repository-function-submodule ]
1313configures a function sourced from a Cloud Source Repositories
1414repository.
1515
@@ -183,7 +183,7 @@ Run `make generate_docs` to update the documentation.
183183[ a7c-l7g-from-l7t-example ] : examples/automatic-labelling-from-localhost
184184[ bundler-site ] : https://bundler.io/
185185[ event-project-log-entry-submodule ] : modules/event-project-log-entry
186- [ f6n-sourced-from-r8y-s7e ] : modules/function-sourced-from- repository
186+ [ repository-function-submodule ] : modules/repository-function
187187[ flake8-site ] : https://pypi.org/project/flake8/
188188[ gofmt-site ] : https://golang.org/cmd/gofmt/
189189[ hadolint-site ] : https://github.com/hadolint/hadolint/
Original file line number Diff line number Diff line change 11# Automatic Labelling from Repository
22
33This example demonstrates how to use the
4- [ function-sourced-from-repository submodule] [ f6n-sourced-from-r8y-s7e ]
5- and the
4+ [ repository-function submodule] [ repository-function-submodule ] and the
65[ event-project-log-entry submodule] [ event-project-log-entry-submodule ]
76to configure a system
87which responds to Compute VM creation events by labelling them with the
@@ -33,8 +32,8 @@ this directory:
3332## Requirements
3433
3534The following sections describe the requirements which must be met in
36- order to invoke this module. The requirements of the
37- [ function-sourced-from- repository submodule] [ f6n-s4e-from-r8y-s7e-r10s ]
35+ order to invoke this module. The
36+ [ repository-function submodule requirements ] [ repository-function-submodule-requirements ]
3837and the
3938[ event-project-log-entry submodule] [ event-project-log-entry-s7e-r10s ]
4039must also be met.
@@ -64,5 +63,5 @@ following APIs enabled:
6463
6564[ event-project-log-entry-s7e-r10s ] : ../../modules/event-project-log-entry/README.md#requirements
6665[ event-project-log-entry-submodule ] : ../../modules/event-project-log-entry
67- [ f6n-s4e-from-r8y-s7e-r10s ] : ../../modules/function-sourced-from- repository/README.md#requirements
68- [ f6n-sourced-from-r8y-s7e ] : ../../modules/function-sourced-from- repository
66+ [ repository-function-submodule-requirements ] : ../../modules/repository-function /README.md#requirements
67+ [ repository-function-submodule ] : ../../modules/repository-function
Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ module "event_project_log_entry" {
8585 project_id = " ${ var . project_id } "
8686}
8787
88- module "function_sourced_from_repository " {
89- source = " ../../modules/function-sourced-from- repository"
88+ module "repository_function " {
89+ source = " ../../modules/repository-function "
9090
9191 description = " Labels resource with owner information."
9292 entry_point = " labelResource"
@@ -107,7 +107,7 @@ resource "null_resource" "wait_for_function" {
107107 command = " sleep 60"
108108 }
109109
110- depends_on = [" module.function_sourced_from_repository " ]
110+ depends_on = [" module.repository_function " ]
111111}
112112
113113resource "google_compute_instance" "main" {
Original file line number Diff line number Diff line change 33This submodule configures a project-level Stackdriver Logging export to
44act as an event which will trigger a Cloud Functions function configured
55by the [ root module] [ root-module ] or the
6- [ function-sourced-from- repository submodule] [ f6n-sourced-from-r8y-s7e ] .
6+ [ repository-function submodule] [ repository-function ] .
77
88The export uses a provided filter to identify events of interest and
99publishes them to a dedicated Pub/Sub topic. The target function
@@ -67,7 +67,7 @@ following APIs enabled:
6767- Cloud Pub/Sub API: ` pubsub.googleapis.com `
6868- Stackdriver Logging API: ` logging.googleapis.com `
6969
70- [ root-module ] : ../..
7170[ automatic-labelling-example ] : ../../examples/automatic_labelling
72- [ f6n-sourced-from-r8y-s7e ] : ../function-sourced-from-repository
71+ [ repository-function ] : ../repository-function
72+ [ root-module ] : ../..
7373[ terraform-site ] : https://www.terraform.io/
Original file line number Diff line number Diff line change 1- # Function Sourced from Repository
1+ # Repository Function
22
33This submodule configures a function sourced from a Cloud Source
44Repositories repository to respond to a given event trigger.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments