published on Monday, Aug 17, 2026 by stackitcloud
published on Monday, Aug 17, 2026 by stackitcloud
VPC Regional routing table resource schema. Must have a region specified in the provider configuration.
This resource is part of the experimental feature vpc and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.
Example Usage
resource "stackit_vpc_region" "example-region" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
vpc_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resource "stackit_vpc_routing_table" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
vpc_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example"
labels = {
"key" = "value"
}
# a routing table needs a configured region
depends_on = [stackit_vpc_region.example-region]
}
Create VpcRoutingTable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcRoutingTable(name: string, args: VpcRoutingTableArgs, opts?: CustomResourceOptions);@overload
def VpcRoutingTable(resource_name: str,
args: VpcRoutingTableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcRoutingTable(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
vpc_id: Optional[str] = None,
description: Optional[str] = None,
dynamic_routes: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
region: Optional[str] = None,
system_routes: Optional[bool] = None)func NewVpcRoutingTable(ctx *Context, name string, args VpcRoutingTableArgs, opts ...ResourceOption) (*VpcRoutingTable, error)public VpcRoutingTable(string name, VpcRoutingTableArgs args, CustomResourceOptions? opts = null)
public VpcRoutingTable(String name, VpcRoutingTableArgs args)
public VpcRoutingTable(String name, VpcRoutingTableArgs args, CustomResourceOptions options)
type: stackit:VpcRoutingTable
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "stackit_vpc_routing_table" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VpcRoutingTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcRoutingTableArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcRoutingTableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcRoutingTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcRoutingTableArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpcRoutingTableResource = new Stackit.VpcRoutingTable("vpcRoutingTableResource", new()
{
ProjectId = "string",
VpcId = "string",
Description = "string",
DynamicRoutes = false,
Labels =
{
{ "string", "string" },
},
Name = "string",
Region = "string",
SystemRoutes = false,
});
example, err := stackit.NewVpcRoutingTable(ctx, "vpcRoutingTableResource", &stackit.VpcRoutingTableArgs{
ProjectId: pulumi.String("string"),
VpcId: pulumi.String("string"),
Description: pulumi.String("string"),
DynamicRoutes: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Region: pulumi.String("string"),
SystemRoutes: pulumi.Bool(false),
})
resource "stackit_vpc_routing_table" "vpcRoutingTableResource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
vpc_id = "string"
description = "string"
dynamic_routes = false
labels = {
"string" = "string"
}
name = "string"
region = "string"
system_routes = false
}
var vpcRoutingTableResource = new VpcRoutingTable("vpcRoutingTableResource", VpcRoutingTableArgs.builder()
.projectId("string")
.vpcId("string")
.description("string")
.dynamicRoutes(false)
.labels(Map.of("string", "string"))
.name("string")
.region("string")
.systemRoutes(false)
.build());
vpc_routing_table_resource = stackit.VpcRoutingTable("vpcRoutingTableResource",
project_id="string",
vpc_id="string",
description="string",
dynamic_routes=False,
labels={
"string": "string",
},
name="string",
region="string",
system_routes=False)
const vpcRoutingTableResource = new stackit.VpcRoutingTable("vpcRoutingTableResource", {
projectId: "string",
vpcId: "string",
description: "string",
dynamicRoutes: false,
labels: {
string: "string",
},
name: "string",
region: "string",
systemRoutes: false,
});
type: stackit:VpcRoutingTable
properties:
description: string
dynamicRoutes: false
labels:
string: string
name: string
projectId: string
region: string
systemRoutes: false
vpcId: string
VpcRoutingTable Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcRoutingTable resource accepts the following input properties:
- Project
Id string - STACKIT project ID to which the regional routing table is associated.
- Vpc
Id string - The vpc ID to which the regional routing table is associated.
- Description string
- Description of the regional routing table.
- Dynamic
Routes bool - This controls whether dynamic routes are propagated to this regional routing table
- Labels Dictionary<string, string>
- Labels are key-value string pairs which can be attached to a resource container
- Name string
- The name of the regional routing table.
- Region string
- The resource region. If not defined, the provider region is used.
- System
Routes bool - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- Project
Id string - STACKIT project ID to which the regional routing table is associated.
- Vpc
Id string - The vpc ID to which the regional routing table is associated.
- Description string
- Description of the regional routing table.
- Dynamic
Routes bool - This controls whether dynamic routes are propagated to this regional routing table
- Labels map[string]string
- Labels are key-value string pairs which can be attached to a resource container
- Name string
- The name of the regional routing table.
- Region string
- The resource region. If not defined, the provider region is used.
- System
Routes bool - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- project_
id string - STACKIT project ID to which the regional routing table is associated.
- vpc_
id string - The vpc ID to which the regional routing table is associated.
- description string
- Description of the regional routing table.
- dynamic_
routes bool - This controls whether dynamic routes are propagated to this regional routing table
- labels map(string)
- Labels are key-value string pairs which can be attached to a resource container
- name string
- The name of the regional routing table.
- region string
- The resource region. If not defined, the provider region is used.
- system_
routes bool - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- project
Id String - STACKIT project ID to which the regional routing table is associated.
- vpc
Id String - The vpc ID to which the regional routing table is associated.
- description String
- Description of the regional routing table.
- dynamic
Routes Boolean - This controls whether dynamic routes are propagated to this regional routing table
- labels Map<String,String>
- Labels are key-value string pairs which can be attached to a resource container
- name String
- The name of the regional routing table.
- region String
- The resource region. If not defined, the provider region is used.
- system
Routes Boolean - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- project
Id string - STACKIT project ID to which the regional routing table is associated.
- vpc
Id string - The vpc ID to which the regional routing table is associated.
- description string
- Description of the regional routing table.
- dynamic
Routes boolean - This controls whether dynamic routes are propagated to this regional routing table
- labels {[key: string]: string}
- Labels are key-value string pairs which can be attached to a resource container
- name string
- The name of the regional routing table.
- region string
- The resource region. If not defined, the provider region is used.
- system
Routes boolean - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- project_
id str - STACKIT project ID to which the regional routing table is associated.
- vpc_
id str - The vpc ID to which the regional routing table is associated.
- description str
- Description of the regional routing table.
- dynamic_
routes bool - This controls whether dynamic routes are propagated to this regional routing table
- labels Mapping[str, str]
- Labels are key-value string pairs which can be attached to a resource container
- name str
- The name of the regional routing table.
- region str
- The resource region. If not defined, the provider region is used.
- system_
routes bool - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- project
Id String - STACKIT project ID to which the regional routing table is associated.
- vpc
Id String - The vpc ID to which the regional routing table is associated.
- description String
- Description of the regional routing table.
- dynamic
Routes Boolean - This controls whether dynamic routes are propagated to this regional routing table
- labels Map<String>
- Labels are key-value string pairs which can be attached to a resource container
- name String
- The name of the regional routing table.
- region String
- The resource region. If not defined, the provider region is used.
- system
Routes Boolean - This allows installation of automatic system routes for connectivity between projects in the same VPC.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcRoutingTable resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Routing
Table stringId - The regional routing tables ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Routing
Table stringId - The regional routing tables ID.
- id string
- The provider-assigned unique ID for this managed resource.
- routing_
table_ stringid - The regional routing tables ID.
- id String
- The provider-assigned unique ID for this managed resource.
- routing
Table StringId - The regional routing tables ID.
- id string
- The provider-assigned unique ID for this managed resource.
- routing
Table stringId - The regional routing tables ID.
- id str
- The provider-assigned unique ID for this managed resource.
- routing_
table_ strid - The regional routing tables ID.
- id String
- The provider-assigned unique ID for this managed resource.
- routing
Table StringId - The regional routing tables ID.
Look up Existing VpcRoutingTable Resource
Get an existing VpcRoutingTable resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VpcRoutingTableState, opts?: CustomResourceOptions): VpcRoutingTable@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dynamic_routes: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
routing_table_id: Optional[str] = None,
system_routes: Optional[bool] = None,
vpc_id: Optional[str] = None) -> VpcRoutingTablefunc GetVpcRoutingTable(ctx *Context, name string, id IDInput, state *VpcRoutingTableState, opts ...ResourceOption) (*VpcRoutingTable, error)public static VpcRoutingTable Get(string name, Input<string> id, VpcRoutingTableState? state, CustomResourceOptions? opts = null)public static VpcRoutingTable get(String name, Output<String> id, VpcRoutingTableState state, CustomResourceOptions options)resources: _: type: stackit:VpcRoutingTable get: id: ${id}import {
to = stackit_vpc_routing_table.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- Description of the regional routing table.
- Dynamic
Routes bool - This controls whether dynamic routes are propagated to this regional routing table
- Labels Dictionary<string, string>
- Labels are key-value string pairs which can be attached to a resource container
- Name string
- The name of the regional routing table.
- Project
Id string - STACKIT project ID to which the regional routing table is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Routing
Table stringId - The regional routing tables ID.
- System
Routes bool - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- Vpc
Id string - The vpc ID to which the regional routing table is associated.
- Description string
- Description of the regional routing table.
- Dynamic
Routes bool - This controls whether dynamic routes are propagated to this regional routing table
- Labels map[string]string
- Labels are key-value string pairs which can be attached to a resource container
- Name string
- The name of the regional routing table.
- Project
Id string - STACKIT project ID to which the regional routing table is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Routing
Table stringId - The regional routing tables ID.
- System
Routes bool - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- Vpc
Id string - The vpc ID to which the regional routing table is associated.
- description string
- Description of the regional routing table.
- dynamic_
routes bool - This controls whether dynamic routes are propagated to this regional routing table
- labels map(string)
- Labels are key-value string pairs which can be attached to a resource container
- name string
- The name of the regional routing table.
- project_
id string - STACKIT project ID to which the regional routing table is associated.
- region string
- The resource region. If not defined, the provider region is used.
- routing_
table_ stringid - The regional routing tables ID.
- system_
routes bool - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- vpc_
id string - The vpc ID to which the regional routing table is associated.
- description String
- Description of the regional routing table.
- dynamic
Routes Boolean - This controls whether dynamic routes are propagated to this regional routing table
- labels Map<String,String>
- Labels are key-value string pairs which can be attached to a resource container
- name String
- The name of the regional routing table.
- project
Id String - STACKIT project ID to which the regional routing table is associated.
- region String
- The resource region. If not defined, the provider region is used.
- routing
Table StringId - The regional routing tables ID.
- system
Routes Boolean - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- vpc
Id String - The vpc ID to which the regional routing table is associated.
- description string
- Description of the regional routing table.
- dynamic
Routes boolean - This controls whether dynamic routes are propagated to this regional routing table
- labels {[key: string]: string}
- Labels are key-value string pairs which can be attached to a resource container
- name string
- The name of the regional routing table.
- project
Id string - STACKIT project ID to which the regional routing table is associated.
- region string
- The resource region. If not defined, the provider region is used.
- routing
Table stringId - The regional routing tables ID.
- system
Routes boolean - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- vpc
Id string - The vpc ID to which the regional routing table is associated.
- description str
- Description of the regional routing table.
- dynamic_
routes bool - This controls whether dynamic routes are propagated to this regional routing table
- labels Mapping[str, str]
- Labels are key-value string pairs which can be attached to a resource container
- name str
- The name of the regional routing table.
- project_
id str - STACKIT project ID to which the regional routing table is associated.
- region str
- The resource region. If not defined, the provider region is used.
- routing_
table_ strid - The regional routing tables ID.
- system_
routes bool - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- vpc_
id str - The vpc ID to which the regional routing table is associated.
- description String
- Description of the regional routing table.
- dynamic
Routes Boolean - This controls whether dynamic routes are propagated to this regional routing table
- labels Map<String>
- Labels are key-value string pairs which can be attached to a resource container
- name String
- The name of the regional routing table.
- project
Id String - STACKIT project ID to which the regional routing table is associated.
- region String
- The resource region. If not defined, the provider region is used.
- routing
Table StringId - The regional routing tables ID.
- system
Routes Boolean - This allows installation of automatic system routes for connectivity between projects in the same VPC.
- vpc
Id String - The vpc ID to which the regional routing table is associated.
Import
In Terraform v1.5.0 and later, the + "" + import + “" + block can be used with the + "” + id + “" + attribute, for example:
# Only use the import statement, if you want to import an existing routing table
import {
to = stackit_vpc_routing_table.import-example
id = "${var.project_id},${var.vpc_id},${var.region},${var.routing_table_id}"
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Monday, Aug 17, 2026 by stackitcloud