blob: b102cbfb03c3728755c06b7f7e22e4384d1cc90b [file] [log] [blame]
:py:mod:`tests.system.providers.google.cloud.compute_igm.example_compute_igm`
=============================================================================
.. py:module:: tests.system.providers.google.cloud.compute_igm.example_compute_igm
.. autoapi-nested-parse::
Example Airflow DAG that uses IGM-type compute operations:
* copy of Instance Template
* update template in Instance Group Manager
This DAG relies on the following OS environment variables
* GCP_PROJECT_ID - the Google Cloud project where the Compute Engine instance exists
* GCE_ZONE - the zone where the Compute Engine instance exists
Variables for copy template operator:
* GCE_TEMPLATE_NAME - name of the template to copy
* GCE_NEW_TEMPLATE_NAME - name of the new template
* GCE_NEW_DESCRIPTION - description added to the template
Variables for update template in Group Manager:
* GCE_INSTANCE_GROUP_MANAGER_NAME - name of the Instance Group Manager
* SOURCE_TEMPLATE_URL - url of the template to replace in the Instance Group Manager
* DESTINATION_TEMPLATE_URL - url of the new template to set in the Instance Group Manager
Module Contents
---------------
.. py:data:: ENV_ID
.. py:data:: GCP_PROJECT_ID
.. py:data:: GCE_ZONE
.. py:data:: DAG_ID
:annotation: = example_gcp_compute_igm
.. py:data:: GCE_TEMPLATE_NAME
.. py:data:: GCE_NEW_TEMPLATE_NAME
.. py:data:: GCE_NEW_DESCRIPTION
.. py:data:: GCE_INSTANCE_TEMPLATE_BODY_UPDATE
.. py:data:: GCE_INSTANCE_GROUP_MANAGER_NAME
.. py:data:: SOURCE_TEMPLATE_URL
.. py:data:: DESTINATION_TEMPLATE_URL
.. py:data:: UPDATE_POLICY
.. py:data:: gce_instance_template_copy
.. py:data:: test_run