terraform-provider-stackitp.../docs/resources/routing_table.md
Alexander Dahmen 721e10a02f
chore(examples): Add import examples for all resources (#939)
* 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>
2025-08-08 14:03:27 +02:00

2.2 KiB

page_title subcategory description
stackit_routing_table Resource - stackit Routing table resource schema. Must have a region specified in the provider configuration. ~> This resource is part of the routing-tables experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.

stackit_routing_table (Resource)

Routing table resource schema. Must have a region specified in the provider configuration.

~> This resource is part of the routing-tables experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.

Example Usage

resource "stackit_routing_table" "example" {
  organization_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  network_area_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  name            = "example"
  labels = {
    "key" = "value"
  }
}

# Only use the import statement, if you want to import an existing routing table
import {
  to = stackit_routing_table.import-example
  id = "${var.organization_id},${var.region},${var.network_area_id},${var.routing_table_id}"
}

Schema

Required

  • name (String) The name of the routing table.
  • network_area_id (String) The network area ID to which the routing table is associated.
  • organization_id (String) STACKIT organization ID to which the routing table is associated.

Optional

  • description (String) Description of the routing table.
  • labels (Map of String) Labels are key-value string pairs which can be attached to a resource container
  • region (String) The resource region. If not defined, the provider region is used.
  • system_routes (Boolean) This controls whether the routes for project-to-project communication are created automatically or not.

Read-Only

  • created_at (String) Date-time when the routing table was created
  • id (String) Terraform's internal resource ID. It is structured as "organization_id,region,network_area_id,routing_table_id".
  • routing_table_id (String) The routing tables ID.
  • updated_at (String) Date-time when the routing table was updated