I've followed kaxil answer in How to set up Airflow Send Email? to setup airflow, however gcp doesn't allow to set:
smtp_password = 16_DIGIT_APP_PASSWORD
explicity inside cloud composer. I checked on google documentation https://cloud.google.com/composer/docs/configure-email#smtp_password and found out that there is a way to set it by Using a command to retrieve an SMTP password.
smtp_password_cmd
does not appear as a key in https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html?highlight=smtp_password_cmd#smtp-password but as an environment variable, therefore is it possibile to do as suggested by the google documentation and setsmtp smtp_password_cmd Specify a command that returns the SMTP password.
?- i'm absolutely clueless on how to create a command and what to pass as an argument in
Specify a command that returns the SMTP password
, if for example my smtp password is :dummypassword1
could someone provide an example of such command and how to set it inside the config?