terraform-provider-stackitp.../examples/resources/stackitprivatepreview_sqlserverflexalpha_database/resource.tf
Marcel S. Henselin e54bd81c67
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 6s
CI Workflow / CI run tests (pull_request) Failing after 23m3s
CI Workflow / CI run build and linting (pull_request) Successful in 25m5s
CI Workflow / Code coverage report (pull_request) Successful in 6s
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 34m59s
fix: try fix encryption save
chore: add more examples
2026-02-17 10:40:16 +01:00

24 lines
No EOL
756 B
HCL

resource "stackitprivatepreview_sqlserverflexalpha_database" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
collation = ""
compatibility = "160"
name = ""
owner = ""
}
# Only use the import statement, if you want to import a existing sqlserverflex database
import {
to = stackitprivatepreview_sqlserverflexalpha_database.import-example
id = "${var.project_id},${var.region},${var.sql_instance_id},${var.sql_user_id}"
}
import {
to = stackitprivatepreview_sqlserverflexalpha_database.import-example
identity = {
project_id = "project.id"
region = "region"
instance_id = "instance.id"
database_id = "database.id"
}
}