terraform-provider-stackitp.../docs/data-sources/public_ip_ranges.md
Mauritz Uphoff fcc7a99488
feat: add cidr_list attribute to stackit_public_ip_ranges datasource (#1001)
* feat: add cidr_list attribute to stackit_public_ip_ranges datasource

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
2025-10-08 07:19:57 +00:00

1.6 KiB

page_title subcategory description
stackit_public_ip_ranges Data Source - stackit A list of all public IP ranges that STACKIT uses.

stackit_public_ip_ranges (Data Source)

A list of all public IP ranges that STACKIT uses.

Example Usage

data "stackit_public_ip_ranges" "example" {}

# example usage: allow stackit services and customer vpn cidr to access observability apis
locals {
  vpn_cidrs = ["X.X.X.X/32", "X.X.X.X/24"]
}

resource "stackit_observability_instance" "example" {
  project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  name       = "example-instance"
  plan_name  = "Observability-Monitoring-Medium-EU01"
  # Allow all stackit services and customer vpn cidr to access observability apis
  acl                                    = concat(data.stackit_public_ip_ranges.example.cidr_list, local.vpn_cidrs)
  metrics_retention_days                 = 90
  metrics_retention_days_5m_downsampling = 90
  metrics_retention_days_1h_downsampling = 90
}

Schema

Read-Only

  • cidr_list (List of String) A list of IP range strings (CIDRs) extracted from the public_ip_ranges for easy consumption.
  • id (String) Terraform's internal resource ID. It takes the values of "public_ip_ranges.*.cidr".
  • public_ip_ranges (Attributes List) A list of all public IP ranges. (see below for nested schema)

Nested Schema for public_ip_ranges

Read-Only:

  • cidr (String) Classless Inter-Domain Routing (CIDR)