* 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>
27 lines
No EOL
696 B
HCL
27 lines
No EOL
696 B
HCL
resource "stackit_mongodbflex_instance" "example" {
|
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
name = "example-instance"
|
|
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
|
|
flavor = {
|
|
cpu = 1
|
|
ram = 4
|
|
}
|
|
replicas = 1
|
|
storage = {
|
|
class = "class"
|
|
size = 10
|
|
}
|
|
version = "7.0"
|
|
options = {
|
|
type = "Single"
|
|
snapshot_retention_days = 3
|
|
point_in_time_window_hours = 30
|
|
}
|
|
backup_schedule = "0 0 * * *"
|
|
}
|
|
|
|
# Only use the import statement, if you want to import an existing mongodbflex instance
|
|
import {
|
|
to = stackit_mongodbflex_instance.import-example
|
|
id = "${var.project_id},${var.region},${var.instance_id}"
|
|
} |