GCP Cloud Composer access Airflow UI with token

85 views Asked by At

Is there a way on GCP Cloud Composer to access Airflow UI without GCP/Google account only with constructing the link with some kind of token.

AWS has it implemented this way:

#!/bin/bash
HOST=YOUR_HOST_NAME
YOUR_URL=https://$HOST/aws_mwaa/aws-console-sso?login=true#
WEB_TOKEN=$(aws mwaa create-web-login-token --name YOUR_ENVIRONMENT_NAME --query WebToken --output text)
echo $YOUR_URL$WEB_TOKEN

Bash, python or any other solution would be very helpful.

So far I managed to get Airflow UI URL from gcloud cli:

gcloud composer environments describe ENVIRONMENT_NAME --location=LOCATION --format "value(config.airflowUri)"

0

There are 0 answers