ETLMCPData Conveyance Works
Log in Start free
Guides

Connect etlmcp to Aiven for PostgreSQL: service URI, IP allowlist and free-plan power-off

Which parts of Aiven's service URI go into etlmcp, why the IP allowlist must include etlmcp's address, and why idle free services stop loads.

To load data from etlmcp into Aiven for PostgreSQL, copy the service URI from your service's Overview page in the Aiven Console and split it into etlmcp's separate fields: host, port, database, user and password. Keep Aiven's IP filter open to etlmcp's address, and on the free plan, expect loads to fail if Aiven powers the service off for inactivity.

From the service URI to etlmcp's fields

etlmcp's Postgres destination does not take a URI; it asks for each part on its own:

  • Host: the host name between the @ and the : in the URI.
  • Port: the number after the host. etlmcp pre-fills the standard Postgres port, so replace it with the port in your URI.
  • Database: the name after the /, before the ?.
  • User and password: the two values before the @, separated by a colon.
  • Schema and Table: your choice. Schema defaults to public, and etlmcp creates the table if it is missing.

SSL

Aiven's default connection string ends with sslmode=require, which encrypts the connection without checking the server's CA certificate. etlmcp connects with the same mode unless the operator of your etlmcp server changed it, so you add nothing. Aiven suggests verify-ca with its certificate for production clients; Postgres SSL explains what each mode checks.

The IP allowlist

A new Aiven service accepts connections from any address, because its IP filter starts as 0.0.0.0/0. You change it in the service settings under Cloud and network, with the action to set or edit the IP address allowlist. Entries are single addresses or CIDR blocks.

If you remove 0.0.0.0/0 and add only your office network, no other client can connect, and that includes etlmcp. Add etlmcp's address first. The Destinations page shows it in a note under your destinations, after the words "Behind a firewall?" If the note is missing, the operator of your etlmcp server has not set one, so ask them. Then press Test: etlmcp inserts one sample row and rolls it back, so a blocked address shows up straight away.

The free plan

Aiven's free PostgreSQL plan is a single node with 1 GB of storage, 1 GB of RAM and 1 CPU. It caps max_connections at 20 and has no connection pooling.

Aiven can power off a free service that shows no ongoing activity, and it sends a notification before it does. While the service is off, every scheduled run fails to connect. Power the service back on in the Console, then run the missed dates again. Services on the paid Developer tier are not powered off when idle, so move to it if you need loads to keep running unattended.

Before your first sync

Create a separate user for etlmcp instead of reusing the admin user, and grant it the rights to create tables in your schema; Postgres privileges lists the grants.

Related

Sources

  1. Connect to Aiven for PostgreSQL® with Python — aiven.io, checked
  2. Connect to Aiven for PostgreSQL® with psql — aiven.io, checked
  3. Restrict network access to services — aiven.io, checked
  4. Service pricing — aiven.io, checked
  5. Aiven for PostgreSQL® free tier — aiven.io, checked