generated from professional-service-best-practices/best-practice-template
STACKIT Managed Service Prefixes for Route Table usage
| .forgejo | ||
| .gitignore | ||
| .terraform-version | ||
| .terraform.lock.hcl | ||
| CHANGELOG.md | ||
| create_rt_tf.sh | ||
| eu01-stackit-lb.txt | ||
| eu01-stackit-s3.txt | ||
| eu01-stackit-ske.txt | ||
| LICENSE | ||
| main.tf | ||
| MAINTAINERS.md | ||
| output.tf | ||
| README.md | ||
| variables.tf | ||
| versions.tf | ||
STACKIT Service Prefixes Module
Overview
This repository provides a Terraform Module to manage Route Tables to access STACKIT Managed Services like SKE, Load Balancers and S3 Object Storage.
Prerequisites
Before using this template, ensure you have the following:
- Tools:
- Terraform version
1.5.7or higher - Git
- Terraform version
- Access & Permissions:
- STACKIT Service Account with permissions on a STACKIT Route Table & Network Area
- STACKIT provider credentials configured
How to Use
Follow these steps to implement the template:
-
Select the Git Branch that fits your use case There are Branches for every supported product and region
-
Configure the Terrafom Module:
- Paste the following code block in the
provider.tffile see the opetions in Configuration section below.
module "stackit_service_routing_table" { source = "git@ssh.professional-service.git.onstackit.cloud:professional-service-best-practices/stackit-service-prefixes.git?ref=eu01-s3" stackit_org_id = "0000-0000-00000-00000-00000" stackit_sna_id = "0000-0000-00000-00000-00000" routing_table_name = "ske-rt" dns_server = "9.9.9.9" default_gateway = "172.21.13.2" } - Paste the following code block in the
-
Initialize and apply:
terraform init terraform plan terraform apply
Configuration
The following variables can be configured.
| Variable Name | Description | Type | Default Value | Required |
|---|---|---|---|---|
stackit_org_id |
The STACKIT organization 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 |
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 or LB is selected) |
Dependencies
This template relies on the following pinned versions:
- Provider STACKIT:
~> 0.69.0
Changelog
All notable changes to this project are documented in the CHANGELOG.md file.