The zl-* utilities are custom wrapper scripts designed to simplify common tasks for developers by providing a user-friendly interface over more complex systems. Below is a comprehensive guide to each utility, including usage examples and options.
Purpose: Simplifies running chef-client commands by filtering out irrelevant logs and allowing developers to deploy basic recipes.
Chef client for a given service checks for the current build from consul and deploys it on the server.
Usage:
zl-chef-client -s [qualified_service_name]
Examples:
zl-chef-client -s nsg1-n-event-hubzl-chef-client -s nsg1-n-event-hub,nsg1-n-live-data-streamingPurpose: Connects to PostgreSQL databases specific to services. Access is limited to RDS instances from dbrouter servers.
For connecting to stage databases, connect to stage_dbrouter_1 machine For connecting to prod databases, connect to prod_dbrouter_1 machine
Usage:
zl-pg-connect [qualified_service_name] [--write]
Examples:
zl-pg-connect nint-n-event-hubzl-pg-connect nint-n-event-hub --writeNote:
Purpose: Provides access to MongoDB instances for specific services. Requires database-level access permissions.
For connecting to stage databases, connect to stage_dbrouter_1 machine For connecting to prod databases, connect to prod_dbrouter_1 machine
Usage:
zl-mongo-connect [qualified_service_name] [--write]
Examples:
zl-mongo-connect nint-n-event-hubzl-mongo-connect nint-n-event-hub --write