Creates a postgres database

This module creates a postgres Azure Database for PostgreSQL database. It is made with the private link, ensuring private communication.


When linked to a k8s-service, it adds connection credentials to your container’s environment variables as:

  • {module_name}_db_user
  • {module_name}_db_password
  • {module_name}_db_name
  • {module_name}_db_host

In the modules reference example, the {module_name} would be replaced with rds

The permission list can optionally have one entry which should be a map for renaming the default environment variable names to a user-defined value:

  - db:
      - db_user: DBUSER
        db_host: DBHOST
        db_name: DBNAME
        db_password: DBPASS

If present, this map must have renames for all 4 fields.


  • sku_name - Optional. The name of the SKU, follows the tier + family + cores pattern for Azure postgres instances. Default GP_Gen5_4
  • engine_version - Optional. The version of the database to use. Default 11


Last modified September 22, 2021: Updating latest references (62bb6e2)