feat: testing #34
1 changed files with 27 additions and 10 deletions
|
|
@ -13,21 +13,29 @@ description: |-
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```terraform
|
```terraform
|
||||||
resource "stackitprivatepreview_postgresflexalpha_instance" "example" {
|
resource "stackitprivatepreview_postgresflexalpha_instance" "msh-instance-only" {
|
||||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
name = "example-instance"
|
name = "example-instance"
|
||||||
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
|
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
|
||||||
backup_schedule = "00 00 * * *"
|
backup_schedule = "0 0 * * *"
|
||||||
flavor = {
|
retention_days = 30
|
||||||
cpu = 2
|
flavor_id = "flavor.id"
|
||||||
ram = 4
|
replicas = 1
|
||||||
}
|
|
||||||
replicas = 3
|
|
||||||
storage = {
|
storage = {
|
||||||
class = "class"
|
performance_class = "premium-perf2-stackit"
|
||||||
size = 5
|
size = 10
|
||||||
}
|
}
|
||||||
version = 14
|
encryption = {
|
||||||
|
kek_key_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
|
kek_key_ring_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
|
kek_key_version = 1
|
||||||
|
service_account = "service@account.email"
|
||||||
|
}
|
||||||
|
network = {
|
||||||
|
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
|
||||||
|
access_scope = "PUBLIC"
|
||||||
|
}
|
||||||
|
version = 17
|
||||||
}
|
}
|
||||||
|
|
||||||
# Only use the import statement, if you want to import an existing postgresflex instance
|
# Only use the import statement, if you want to import an existing postgresflex instance
|
||||||
|
|
@ -35,6 +43,15 @@ import {
|
||||||
to = stackitprivatepreview_postgresflexalpha_instance.import-example
|
to = stackitprivatepreview_postgresflexalpha_instance.import-example
|
||||||
id = "${var.project_id},${var.region},${var.postgres_instance_id}"
|
id = "${var.project_id},${var.region},${var.postgres_instance_id}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import {
|
||||||
|
to = stackitprivatepreview_postgresflexalpha_instance.import-example
|
||||||
|
identity = {
|
||||||
|
project_id = var.project_id
|
||||||
|
region = var.region
|
||||||
|
instance_id = var.postgres_instance_id
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- schema generated by tfplugindocs -->
|
<!-- schema generated by tfplugindocs -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue