| :py:mod:`airflow.providers.google.cloud.example_dags.example_compute` |
| ===================================================================== |
| |
| .. py:module:: airflow.providers.google.cloud.example_dags.example_compute |
| |
| .. autoapi-nested-parse:: |
| |
| Example Airflow DAG that starts, stops and sets the machine type of a Google Compute |
| Engine instance. |
| |
| This DAG relies on the following OS environment variables |
| |
| * GCP_PROJECT_ID - Google Cloud project where the Compute Engine instance exists. |
| * GCE_ZONE - Google Cloud zone where the instance exists. |
| * GCE_INSTANCE - Name of the Compute Engine instance. |
| * GCE_SHORT_MACHINE_TYPE_NAME - Machine type resource name to set, e.g. 'n1-standard-1'. |
| See https://cloud.google.com/compute/docs/machine-types |
| |
| |
| |
| Module Contents |
| --------------- |
| |
| .. py:data:: GCP_PROJECT_ID |
| |
| |
| |
| |
| .. py:data:: GCE_ZONE |
| |
| |
| |
| |
| .. py:data:: GCE_INSTANCE |
| |
| |
| |
| |
| .. py:data:: GCE_SHORT_MACHINE_TYPE_NAME |
| |
| |
| |
| |
| .. py:data:: gce_instance_start |
| |
| |
| |
| |