---
title: "yb_server_cloud()"
url: "https://docs.yugabyte.com/stable/api/ysql/exprs/geo_partitioning_helper_functions/func_yb_server_cloud/"
---

# yb_server_cloud()

Returns the cloud provider of the currently connected node

## Synopsis

`yb_server_cloud()` returns the cloud provider that a user's server is connected to.

## Examples

Call `yb_server_cloud()`

```plpgsql
yugabyte=# SELECT yb_server_cloud();
```

```output.sql
 yb_server_cloud
-----------------
 aws
(1 row)
```

## See also

- [`yb_server_region()`](/stable/api/ysql/exprs/geo_partitioning_helper_functions/func_yb_server_region "yb_server_region()")
- [`yb_server_zone()`](/stable/api/ysql/exprs/geo_partitioning_helper_functions/func_yb_server_zone "yb_server_zone()")
- [`yb_is_local_table(oid)`](/stable/api/ysql/exprs/geo_partitioning_helper_functions/func_yb_is_local_table "yb_is_local_table(oid)")
