tests.system.providers.google.cloud.compute_igm.example_compute_igm

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

tests.system.providers.google.cloud.compute_igm.example_compute_igm.ENV_ID[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.GCP_PROJECT_ID[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.GCE_ZONE[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.DAG_ID = example_gcp_compute_igm[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.GCE_TEMPLATE_NAME[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.GCE_NEW_TEMPLATE_NAME[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.GCE_NEW_DESCRIPTION[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.GCE_INSTANCE_TEMPLATE_BODY_UPDATE[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.GCE_INSTANCE_GROUP_MANAGER_NAME[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.SOURCE_TEMPLATE_URL[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.DESTINATION_TEMPLATE_URL[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.UPDATE_POLICY[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.gce_instance_template_copy[source]
tests.system.providers.google.cloud.compute_igm.example_compute_igm.test_run[source]

Was this entry helpful?