Yes. Each connection is one configured service with its own name, credentials, environment and allowed resources, so orders-prod and orders-stage, or two AWS accounts, are separate connections.
- Names: the AI chooses a connection by its name. An endpoint publishes one
sql_queryfor all its SQL connections, and each call names the connection it runs on. - Environments: mark each connection DEV, STAGE or PROD. Production connections go only on production endpoints, so put staging and production on separate endpoints and connect your AI app to the one the task needs.
- Rules: policies apply per environment, and production starts stricter, for example with a 100-row SQL limit and a required approval comment. Tool modes are set per connection and tool, so
sql_querycan run in Read only on staging and wait in Approval on production. - Credentials: each connection keeps its own. Duplicating a connection doesn't copy its secrets.
See connections, endpoints and environments and read-only production.