You can also use the credentials provided to your flow in your dependencies. This will allow you to import a GCPCredentials or AWSCredentials object in any dependency.

from buildflow.dependencies import dependencies, Scope
from buildflow.core.credentials import AWSCredentials, GCPCredentials

@dependenc(scope=Scope.GLOBAL)
class MyCustomDep:
    def __init__(self, gcp_creds: GCPCredentials, aws_creds: AWSCredentials):
        # Consumer the credentials here.
        ...