How to run docker image inside GCP Compute Engine instance with Apache Airflow

Viewed 80

I am trying to create a dag from which I want to spin a Compute Engine instance with a docker image stored in Google Container Registry.

Simply, I wanted to replicate gcloud compute instances create-with-container with airflow dags with gcloud operators. I have searched for airflow operators for such operations but couldn't find any.

Tried to refer:

1. https://airflow.apache.org/docs/apache-airflow-providers-google/stable/operators/cloud/compute.html

  1. https://cloud.google.com/composer/docs/connect-gce-vm-sshoperator
0 Answers
Related