()
return keys
Extract AWS secrets from environment variables.
Extract AWS secrets from environment variables.
Extract AWS secrets from environment variables .
def get_aws_secrets_from_env() -> Set[str]:
    """Extract AWS secrets from environment variables."""
    keys = set()
    for env_var in (
        'AWS_SECRET_ACCESS_KEY', 'AWS_SECURITY_TOKEN', 'AWS_SESSION_TOKEN',
    ):
        if os.environ.get(env_var):
            keys.add(os.environ[env_var])
    return keys
def get_aws_secrets_from_env ( ) -> Set [ str ] : keys = set ( ) for env_var in ( 'AWS_SECRET_ACCESS_KEY' , 'AWS_SECURITY_TOKEN' , 'AWS_SESSION_TOKEN' , ) : if os . environ . get ( env_var ) : keys . add ( os . environ [ env_var ] ) return keys