Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

ERROR - Google Cloud API Call Error (PermissionDenied) - Airflow Secret Manager

Hi! So I'm currently studying about airflow and I want to know more how to create an email notification in cloud composer using SMTP server but I have an error like this

[2022-12-05, 13:30:25 WIB] {credentials_provider.py:324} INFO - Getting connection using `google.auth.default()` since no key file is defined for hook.
[2022-12-05, 13:30:25 WIB] {secret_manager_client.py:88} ERROR - Google Cloud API Call Error (PermissionDenied): No access for Secret ID airflow-config-smtp-password.
                Did you add 'secretmanager.versions.access' permission?
[2022-12-05, 13:30:25 WIB] {configuration.py:381} WARNING - section/key [smtp/smtp_password] not found in config

 and I already created airflow configuration overrides like this

Screenshot 2022-12-05 215628.jpg

And I already adding this role in my SA cloud composer

Screenshot 2022-12-05 214833.jpg

Can anyone help me?

Thankyou

Best regards,

Puspa

Solved Solved
1 1 4,007
1 ACCEPTED SOLUTION

Try adding Secret Manager Admin role and see if it works on your end.

View solution in original post

1 REPLY 1

Try adding Secret Manager Admin role and see if it works on your end.