Set up secret volume/env vars access IAM permissions
In order for the Cloud Run module to access the secrets mounted as volumes or passed as env vars, IAM permissions roles/secretmanager.secretAccessor
role should be granted to the module's service account. This leads to a cyclic dependency problem.
A fix to this could be:
- Allow the module to accept an externally created service account that has the appropriate IAM permissions to access the secrets.
- Configure the secret access IAM permissions in the module.
Edited by Wajdi Hajji