MariaDb DbaaS
Provides an E2E DBaaS MariaDB resource.
This resource allows you to provision and manage MariaDB clusters on your E2E project.
- When applied, it creates a new DBaaS instance.
- When destroyed, the service is terminated.
Example Usage
resource "e2e_dbaas_mariadb" "example" {
name = "my-mariadb-cluster"
location = "Delhi"
project_id = "your-project-id"
software_name = "MariaDB"
software_version = "10.6"
plan_name = "DBS.16GB"
group = "Default"
public_ip_enabled = true
parameter_group_id = 123 # Optional
is_encryption_enabled = true # Optional
encryption_passphrase = "MySecret" # Optional
disk_size = 100 # Optional
database {
user = "admin"
password = "securepassword"
name = "mydb"
dbaas_number = 1
}
vpcs = [e2e_vpc.vpc1.id]
}
resource "e2e_vpc" "vpc1" {
vpc_name = "my-vpc"
location = "Delhi"
project_id = "your-project-id"
}
Schema
Required Attributes
name(String): Unique name of the MariaDB cluster.location(String): Region where the cluster will be deployed.project_id(String): Your E2E Cloud project ID.software_name(String): Name of the software (e.g., "MariaDB").software_version(String): Version of MariaDB to deploy (e.g., "10.6").plan_name(String): DBaaS plan (e.g., "DBS.16GB").group(String): Group to which the DB belongs (typically "Default").database(Block): Nested block containing DB credentials and name.