45 lines
1.3 KiB
HCL
45 lines
1.3 KiB
HCL
|
|
data "stackitprivatepreview_postgresflexalpha_flavor" "pgsql_flavor" {
|
|
project_id = var.project_id
|
|
region = "eu01"
|
|
cpu = 2
|
|
ram = 4
|
|
node_type = "Single"
|
|
storage_class = "premium-perf2-stackit"
|
|
}
|
|
|
|
resource "stackitprivatepreview_postgresflexalpha_instance" "import_for_deletion" {
|
|
project_id = var.project_id
|
|
name = "mshpetest2"
|
|
backup_schedule = "0 0 * * *"
|
|
retention_days = 45
|
|
flavor_id = data.stackitprivatepreview_postgresflexalpha_flavor.pgsql_flavor.flavor_id
|
|
replicas = 1
|
|
storage = {
|
|
# class = "premium-perf2-stackit"
|
|
performance_class = "premium-perf2-stackit"
|
|
size = 10
|
|
}
|
|
encryption = {
|
|
# key_id = stackit_kms_key.key.key_id
|
|
# keyring_id = stackit_kms_keyring.keyring.keyring_id
|
|
kek_key_id = var.key_id
|
|
kek_key_ring_id = var.keyring_id
|
|
kek_key_version = var.key_version
|
|
service_account = var.sa_email
|
|
}
|
|
network = {
|
|
acl = ["0.0.0.0/0", "193.148.160.0/19", "170.85.2.177/32"]
|
|
access_scope = "PUBLIC"
|
|
}
|
|
version = 14
|
|
}
|
|
|
|
import {
|
|
to = stackitprivatepreview_postgresflexalpha_instance.import_for_deletion
|
|
identity = {
|
|
project_id = var.project_id
|
|
region = "eu01"
|
|
instance_id = "d52b5d4c-be3f-4c14-a107-330dab99fd2e"
|
|
}
|
|
}
|