* 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>
18 lines
636 B
HCL
18 lines
636 B
HCL
resource "stackit_redis_instance" "example" {
|
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
name = "example-instance"
|
|
version = "7"
|
|
plan_name = "stackit-redis-1.2.10-replica"
|
|
parameters = {
|
|
sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22"
|
|
enable_monitoring = false
|
|
down_after_milliseconds = 30000
|
|
syslog = ["logs4.your-syslog-endpoint.com:54321"]
|
|
}
|
|
}
|
|
|
|
# Only use the import statement, if you want to import an existing redis instance
|
|
import {
|
|
to = stackit_redis_instance.import-example
|
|
id = "${var.project_id},${var.redis_instance_id}"
|
|
}
|