* 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>
12 lines
No EOL
498 B
HCL
12 lines
No EOL
498 B
HCL
resource "stackit_network_interface" "example" {
|
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
network_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
allowed_addresses = ["192.168.0.0/24"]
|
|
security_group_ids = ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
|
|
}
|
|
|
|
# Only use the import statement, if you want to import an existing network interface
|
|
import {
|
|
to = stackit_network_interface.import-example
|
|
id = "${var.project_id},${var.network_id},${var.network_interface_id}"
|
|
} |