yb_server_cloud()

Synopsis

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

Examples

Call yb_server_cloud()

yugabyte=# SELECT yb_server_cloud();
 yb_server_cloud
-----------------
 aws
(1 row)

Note

If you didn't set the placement_cloud flag at node startup, yb_server_cloud() returns NULL.

See also