* chore(examples): Add import examples for all resources Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Add guide: How to import resources Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1.4 KiB
1.4 KiB
| page_title | subcategory | description |
|---|---|---|
| stackit_mariadb_credential Resource - stackit | MariaDB credential resource schema. Must have a region specified in the provider configuration. |
stackit_mariadb_credential (Resource)
MariaDB credential resource schema. Must have a region specified in the provider configuration.
Example Usage
resource "stackit_mariadb_credential" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
# Only use the import statement, if you want to import an existing mariadb credential
import {
to = stackit_mariadb_credential.import-example
id = "${var.project_id},${var.mariadb_instance_id},${var.mariadb_credential_id}"
}
Schema
Required
instance_id(String) ID of the MariaDB instance.project_id(String) STACKIT Project ID to which the instance is associated.
Read-Only
credential_id(String) The credential's ID.host(String)hosts(List of String)id(String) Terraform's internal resource identifier. It is structured as "project_id,instance_id,credential_id".name(String)password(String, Sensitive)port(Number)uri(String, Sensitive)username(String)