tests.system.providers.google.cloud.cloud_functions.example_functions
¶
Example Airflow DAG that displays interactions with Google Cloud Functions. It creates a function and then deletes it.
This DAG relies on the following OS environment variables https://airflow.apache.org/concepts.html#variables
PROJECT_ID - Google Cloud Project to use for the Cloud Function.
LOCATION - Google Cloud Functions region where the function should be created.
ENTRYPOINT - Name of the executable function in the source code.
and one of the below:
SOURCE_ARCHIVE_URL - Path to the zipped source in Google Cloud Storage
SOURCE_UPLOAD_URL - Generated upload URL for the zipped source and ZIP_PATH - Local path to the zipped source archive
SOURCE_REPOSITORY - The URL pointing to the hosted repository where the function is defined in a supported Cloud Source Repository URL format https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions#SourceRepository
Module Contents¶
- tests.system.providers.google.cloud.cloud_functions.example_functions.DAG_ID = example_gcp_function[source]¶
- tests.system.providers.google.cloud.cloud_functions.example_functions.SHORT_FUNCTION_NAME = hello[source]¶
- tests.system.providers.google.cloud.cloud_functions.example_functions.LOCATION = europe-west1[source]¶
- tests.system.providers.google.cloud.cloud_functions.example_functions.ENTRYPOINT = helloWorld[source]¶