* feat: add cidr_list attribute to stackit_public_ip_ranges datasource Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
49 lines
1.6 KiB
Markdown
49 lines
1.6 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "stackit_public_ip_ranges Data Source - stackit"
|
|
subcategory: ""
|
|
description: |-
|
|
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
|
|
|
|
```terraform
|
|
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 generated by tfplugindocs -->
|
|
## 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](#nestedatt--public_ip_ranges))
|
|
|
|
<a id="nestedatt--public_ip_ranges"></a>
|
|
### Nested Schema for `public_ip_ranges`
|
|
|
|
Read-Only:
|
|
|
|
- `cidr` (String) Classless Inter-Domain Routing (CIDR)
|