terraform-provider-stackitp.../stackit/internal/services/iaasalpha/testdata/resource-routingtable-route-max.tf
Ruben Hönle 9ff9b8f610
feat(iaas): add experimental support for routing tables and routes (#896)
* Merged PR 788126: feat(iaas): Onboard routing tables

feat(iaas): Onboard routing tables

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Merged PR 793350: fix(routingtable): region attribute is missing in scheme

fix(routingtable): region attribute is missing in scheme

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Merged PR 797968: feat(iaas): onboarding of routing table routes

relates to STACKITTPR-241

* use iaasalpha sdk from github

* resolve todos

* remove routes from routing table model

* restructure packages

* acc tests routing tables

* add acc tests for routes

* chore(iaas): mark routing table resources as experimental

* chore(deps): use iaasalpha sdk v0.1.19-alpha

* Review feedback

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
Co-authored-by: Alexander Dahmen (EXT) <Alexander.Dahmen_ext@external.mail.schwarz>
Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-07-02 10:30:50 +02:00

31 lines
831 B
HCL

variable "organization_id" {}
variable "network_area_id" {}
variable "routing_table_name" {}
variable "destination_type" {}
variable "destination_value" {}
variable "next_hop_type" {}
variable "next_hop_value" {}
variable "label" {}
resource "stackit_routing_table" "routing_table" {
organization_id = var.organization_id
network_area_id = var.network_area_id
name = var.routing_table_name
}
resource "stackit_routing_table_route" "route" {
organization_id = var.organization_id
network_area_id = var.network_area_id
routing_table_id = stackit_routing_table.routing_table.routing_table_id
destination = {
type = var.destination_type
value = var.destination_value
}
next_hop = {
type = var.next_hop_type
value = var.next_hop_value
}
labels = {
"acc-test" = var.label
}
}