Compare commits

...
Sign in to create a new pull request.

8 commits

Author SHA1 Message Date
Mauritz Uphoff
321bc5269c update eu01 ske ips
All checks were successful
CI / Terraform CI (push) Successful in 22s
CI / Check License Header (push) Successful in 34s
CI / TruffleHog Secrets Scan (push) Successful in 58s
2026-04-17 10:18:40 +02:00
Markus Brunsch
1853f29362
Update create_rt_tf.sh
All checks were successful
CI / Check License Header (push) Successful in 3s
CI / TruffleHog Secrets Scan (push) Successful in 5s
CI / Terraform CI (push) Successful in 8s
2025-11-19 16:26:39 +01:00
Markus Brunsch
1609fb92f0
fmt 2025-11-19 16:26:36 +01:00
Markus Brunsch
f391873ddc
Update README.md
Some checks failed
CI / Check License Header (push) Successful in 4s
CI / TruffleHog Secrets Scan (push) Successful in 4s
CI / Terraform CI (push) Failing after 7s
2025-11-19 16:22:57 +01:00
Markus Brunsch
da0595f83a
updated link & provider
Some checks failed
CI / Check License Header (push) Successful in 3s
CI / TruffleHog Secrets Scan (push) Successful in 5s
CI / Terraform CI (push) Failing after 8s
2025-11-19 16:22:05 +01:00
Markus Brunsch
336702df89
Update README.md
Some checks failed
CI / Check License Header (push) Successful in 4s
CI / TruffleHog Secrets Scan (push) Successful in 4s
CI / Terraform CI (push) Failing after 6s
2025-11-19 16:18:47 +01:00
Markus Brunsch
d60016a04a
Update create_rt_tf.sh
Some checks failed
CI / Check License Header (push) Successful in 4s
CI / Terraform CI (push) Failing after 12s
CI / TruffleHog Secrets Scan (push) Successful in 27s
2025-11-19 16:13:49 +01:00
Markus Brunsch
595e76aaec
Update README.md
Some checks failed
CI / Check License Header (push) Successful in 3s
CI / Terraform CI (push) Failing after 6s
CI / TruffleHog Secrets Scan (push) Successful in 28s
2025-11-19 16:07:43 +01:00
7 changed files with 123 additions and 102 deletions

54
.terraform.lock.hcl generated
View file

@ -1,45 +1,25 @@
# This file is maintained automatically by "terraform init". # This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates. # Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/random" {
version = "3.6.3"
constraints = "3.6.3"
hashes = [
"h1:zG9uFP8l9u+yGZZvi5Te7PV62j50azpgwPunq2vTm1E=",
"zh:04ceb65210251339f07cd4611885d242cd4d0c7306e86dda9785396807c00451",
"zh:448f56199f3e99ff75d5c0afacae867ee795e4dfda6cb5f8e3b2a72ec3583dd8",
"zh:4b4c11ccfba7319e901df2dac836b1ae8f12185e37249e8d870ee10bb87a13fe",
"zh:4fa45c44c0de582c2edb8a2e054f55124520c16a39b2dfc0355929063b6395b1",
"zh:588508280501a06259e023b0695f6a18149a3816d259655c424d068982cbdd36",
"zh:737c4d99a87d2a4d1ac0a54a73d2cb62974ccb2edbd234f333abd079a32ebc9e",
"zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3",
"zh:a357ab512e5ebc6d1fda1382503109766e21bbfdfaa9ccda43d313c122069b30",
"zh:c51bfb15e7d52cc1a2eaec2a903ac2aff15d162c172b1b4c17675190e8147615",
"zh:e0951ee6fa9df90433728b96381fb867e3db98f66f735e0c3e24f8f16903f0ad",
"zh:e3cdcb4e73740621dabd82ee6a37d6cfce7fee2a03d8074df65086760f5cf556",
"zh:eff58323099f1bd9a0bec7cb04f717e7f1b2774c7d612bf7581797e1622613a0",
]
}
provider "registry.terraform.io/stackitcloud/stackit" { provider "registry.terraform.io/stackitcloud/stackit" {
version = "0.69.0" version = "0.71.0"
constraints = "0.69.0" constraints = ">= 0.71.0"
hashes = [ hashes = [
"h1:ZJT3yMWfm4f2+L8XOJlp4x9dAej6TOz0POQi6yvRimc=", "h1:bR+igHh88b7xV94A/r71zXlweDIfGckiQojQbmu66sw=",
"zh:0062c29953695943f44561264542c65050c35b45fc5fd279d07db40a856c7e33",
"zh:01f74068286ebbb9e7a280e893b6a941214444986ec0aad156b0a349ab3efbab",
"zh:0dde99e7b343fa01f8eefc378171fb8621bedb20f59157d6cc8e3d46c738105f", "zh:0dde99e7b343fa01f8eefc378171fb8621bedb20f59157d6cc8e3d46c738105f",
"zh:23f695fc9299cbdff0cef3e99eccdfd6dbc85266d71f9e7eb917066821f97b2d", "zh:1eb494ed0982ced4f2b5862b1a8e1f01cd9f1b2f9b58a4727ca1d3f8de36491f",
"zh:2cb58760e26de6afc93b26452e1987eca0713ecca5a252e3baf4b6a9adce5ab0", "zh:1f1e7c6cc5a346615f0326860e30904be103553bb54648916a8d2bc238fc046b",
"zh:33b72f438dccbbba5015bd3e265db83fa69f693f5e93cfaf1735bcfd92f2198b", "zh:205a99e2ff92b79b7d22cd4a8e54446b4771a6eb3c892022d79f09bc95446b2e",
"zh:4d22147d5881b6ea824ca11d8676dd3c24b378a87e72d849485d87c412d57c0d", "zh:23eae7757819c282fb8702a3d1145cf5a3f213dc8dfe8164fb1ebd557f557fb2",
"zh:7373e3036eee52c5d915992bcd42df3227603714e9b814d1f8513e0891b87a54", "zh:282dd632c5af337674b745f0669f3a307528fa52510fe7a0227c67d5bbbbeb4b",
"zh:7ea4ad058e2767d7461c4b0cc02adf8591f0c3541274481611ca7c8bc4396f9d", "zh:3f2152bc762d0dd078b8c575e8dffdd5e071c296a3779ae7b73048bba63ac65c",
"zh:82e2568b28874ded800a592b84e6cd570a2f3488214422041a41918076a2db49", "zh:52978b0678ef6ce6041e8798e29c32250151704671da28962cdd35ab1d37f9ba",
"zh:ae2d827c2328c225d279e37f6e1de2605b670b2f1bddf5d43e7c932ef4ff52a3", "zh:8bda483df8d1e6cab852761cea518d853ecb79c55594b0d13ca6b7c31be64eee",
"zh:b206487c97f87f0cde19ef0ab1cfdeafa60ad9fbabdf0d771d96bb56d6d2e94f", "zh:9025811aa21b69980c6ec2b4c0a257578220285f966027da4d9395ea00c00fc2",
"zh:bdbbe0ba3b3b80b0f2bc09b59ea72f9564f9b93d80949f69f6469b0ab8d6b91c", "zh:9b82525383cd61b0be91387a88c3e93d5dd9c99db5206e7cd9f06ed417a15d59",
"zh:c955889cbb87227031233b2226ebe591e4a30699e3f0fc9f32b61ff2c3836dd7", "zh:9f454af001b2337ebefd1e28eda3d3c7fd6310bb002d965a077b1c563a27e433",
"zh:cf51867c75f3c0b58a2e8a2404d4468d0520588aa892c3b30e5beb8a8d20ce79", "zh:af38b52c4b8c1c7859c9052334b3b69034555a021e13edb7250fb948eb19acc7",
"zh:d58e0350bc04d0c3db56606554ac3a6934d9cfd761a73df9cd5a6c732c76c9a6",
"zh:e3ff435b458747f26c7b17d30582d38e00610ecd1274e38b2f43e046a5e28f0b",
] ]
} }

View file

@ -26,7 +26,7 @@ Follow these steps to implement the template:
* Paste the following code block in the `provider.tf` file see the opetions in **Configuration** section below. * Paste the following code block in the `provider.tf` file see the opetions in **Configuration** section below.
```terraform ```terraform
module "stackit_service_routing_table" { module "stackit_service_routing_table" {
source = "git@ssh.professional-service.git.onstackit.cloud:markus.brunsch/routing-table-module.git?ref=ske-eu01" source = "git@ssh.professional-service.git.onstackit.cloud:professional-service-best-practices/stackit-service-prefixes.git?ref=eu01-ske"
stackit_org_id = "0000-0000-00000-00000-00000" stackit_org_id = "0000-0000-00000-00000-00000"
stackit_sna_id = "0000-0000-00000-00000-00000" stackit_sna_id = "0000-0000-00000-00000-00000"
routing_table_name = "ske-rt" routing_table_name = "ske-rt"
@ -50,8 +50,8 @@ The following variables can be configured.
| `stackit_org_id` | The STACKIT organization ID. | `string` | `null` | Yes | | `stackit_org_id` | The STACKIT organization ID. | `string` | `null` | Yes |
| `stackit_sna_id` | The STACKIT Network Area ID. | `string` | `null` | Yes | | `stackit_sna_id` | The STACKIT Network Area ID. | `string` | `null` | Yes |
| `routing_table_name` | Name of the Routing Tabel | `string` | `null` | Yes | | `routing_table_name` | Name of the Routing Tabel | `string` | `null` | Yes |
| `dns_server` | Public DNS Server for the SKE Network| `string` | `null` | Yes (If SKE is selected) | | `dns_server` | Public DNS Server for the SKE Network| `string` | `null` | Yes (If SKE or LB is selected) |
| `default_gateway` | Default Gateway for the DNS Server | `string` | `null` | Yes (If SKE is selected) | | `default_gateway` | Default Gateway for the DNS Server | `string` | `null` | Yes (If SKE or LB is selected) |
### Dependencies ### Dependencies

View file

@ -39,7 +39,8 @@ sed -i -E 's/[0-9]$/\/32\"\n }\n next_hop = {\n type = \"internet\"\n }\n
perl -p -i -e 's/routing-table-ske/"rt-ske-".++$i/ge' ske-routing-table-tmp.tf perl -p -i -e 's/routing-table-ske/"rt-ske-".++$i/ge' ske-routing-table-tmp.tf
# Add Routing Table Header & Routes for Default Internet via Hub & Direct DNS connection # Add Routing Table Header & Routes for Default Internet via Hub & Direct DNS connection
echo '/* Copyright 2025 STACKIT GmbH & Co. KG <markus.brunsch@stackit.cloud> echo '/*
Copyright 2025 STACKIT GmbH & Co. KG <markus.brunsch@stackit.cloud>
Use of this source code is governed by an MIT-style Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at license that can be found in the LICENSE file or at
@ -82,6 +83,7 @@ resource "stackit_routing_table_route" "ske-dns" {
cat ske-routing-table-tmp.tf >> main.tf cat ske-routing-table-tmp.tf >> main.tf
# Cleanup # Cleanup
terraform fmt
rm ske-routing-table-tmp.tf rm ske-routing-table-tmp.tf
rm ske-routing-table-tmp.tf-E rm ske-routing-table-tmp.tf-E
rm ske_lb_s3_ips_uncleaned.tmp.txt rm ske_lb_s3_ips_uncleaned.tmp.txt

View file

@ -0,0 +1,38 @@
45.135.245.236 # controlplane cluster
193.148.174.169 # controlplane cluster
193.148.173.149 # controlplane cluster
193.148.174.135 # controlplane cluster
193.148.164.120 # controlplane cluster
193.148.164.78 # controlplane cluster
193.148.164.217 # controlplane cluster
193.148.174.137 # controlplane cluster
193.148.174.128 # controlplane cluster
45.129.41.73 # controlplane cluster
193.148.174.170 # controlplane cluster
193.148.167.254 # controlplane cluster
193.148.174.28 # controlplane cluster
193.148.162.176 # controlplane cluster
192.214.170.56 # controlplane cluster
192.214.168.128 # controlplane cluster
193.148.166.48 # controlplane cluster
45.129.47.124 # controlplane cluster
193.148.166.12 # controlplane cluster
192.214.168.203 # controlplane cluster
192.214.161.162 # controlplane cluster
193.148.166.17 # controlplane cluster
193.148.165.143 # controlplane cluster
192.214.165.66 # controlplane cluster
192.214.163.218 # controlplane cluster
192.214.163.183 # controlplane cluster
193.148.177.126 # controlplane cluster
193.148.174.175 # controlplane cluster
193.148.174.92 # controlplane cluster
193.148.174.146 # controlplane cluster
45.129.44.104 # controlplane cluster
192.214.171.43 # stage specific registry cache
100.127.59.78 # registry.ske.stackit.cloud
192.53.103.108 # ptbtime1.ptb.de
192.53.103.104 # ptbtime2.ptb.de
192.53.103.103 # ptbtime3.ptb.de
194.94.95.123 # ptbtime4.ptb.de
100.127.2.186 # s3 eu01

View file

@ -1,6 +1,6 @@
45.135.245.236 45.135.245.236
193.148.174.169 193.148.174.169
193.148.174.192 193.148.173.149
193.148.174.135 193.148.174.135
193.148.164.120 193.148.164.120
193.148.164.78 193.148.164.78
@ -23,15 +23,16 @@
193.148.165.143 193.148.165.143
192.214.165.66 192.214.165.66
192.214.163.218 192.214.163.218
192.214.163.183
193.148.177.126
193.148.174.175 193.148.174.175
193.148.174.92 193.148.174.92
193.148.174.146 193.148.174.146
45.129.44.104 45.129.44.104
192.214.171.43 192.214.171.43
45.135.246.192 100.127.59.78
192.53.103.108 192.53.103.108
192.53.103.104 192.53.103.104
192.53.103.103 192.53.103.103
194.94.95.123 194.94.95.123
192.214.163.183 100.127.2.186
193.148.163.71

View file

@ -9,7 +9,7 @@ https://opensource.org/licenses/MIT.
resource "stackit_routing_table" "rt-ske" { resource "stackit_routing_table" "rt-ske" {
organization_id = var.stackit_org_id organization_id = var.stackit_org_id
network_area_id = var.stackit_sna_id network_area_id = var.stackit_sna_id
name = "${var.routing_table_name}" name = var.routing_table_name
system_routes = false system_routes = false
} }