ignition_database_connection Resource

ignition_database_connection (Resource)

Manages a Database Connection in Ignition.

Example Usage

resource "ignition_database_connection" "example" {
  name        = "production_db"
  type        = "MariaDB"
  connect_url = "jdbc:mariadb://localhost:3306/mydb"
  username    = "dbuser"
  password    = "dbpass"
}

Schema

Required

  • connect_url (String) The JDBC connection URL.
  • name (String) The name of the database connection.
  • translator (String) The SQL translator used to negotiate variances in syntax (e.g., MYSQL, POSTGRESQL).
  • type (String) The type of the database connection (e.g., MariaDB, PostgreSQL). Maps to ‘driver’ in Ignition.

Optional

  • description (String) The description of the database connection.
  • enabled (Boolean) Whether the database connection is enabled.
  • password (String, Sensitive) The password for the database connection.
  • username (String) The username for the database connection.

Read-Only

  • id (String) The ID of this resource.
  • signature (String) The signature of the resource, used for updates and deletes.