Skip to content

Commit e9ce14a

Browse files
committed
feat: support metricsEndpoint in all envs
1 parent 87cbc0c commit e9ce14a

35 files changed

Lines changed: 1574 additions & 213 deletions

docs/data-sources/env_aws.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Bring Your Own Cloud (BYOC) AWS environment data source.
5454
CNAME *.internal.example.com. _.internal.$env_name.altinity.cloud.
5555
- (optional, vpce)
5656
CNAME *.vpce.example.com. _.vpce.$env_name.altinity.cloud.
57+
- `eks_logging` (Boolean) Enable/Disable EKS control plane logging to CloudWatch (default `false`).
5758
- `endpoints` (Attributes List) AWS environment VPC endpoint configuration (see [below for nested schema](#nestedatt--endpoints))
5859
- `external_buckets` (Attributes Set) List of external S3 bucket to allow access to. (see [below for nested schema](#nestedatt--external_buckets))
5960
- `force_destroy` (Boolean) Locks the environment for accidental deletion when running `terraform destroy` command. Your environment will be deleted, only when setting this parameter to `true`. Once this parameter is set to `true`, there must be a successful `terraform apply` run (before running the `terraform destroy`) to update this value in the state. Without a successful `terraform apply` after this parameter is set, this flag will have no effect. (default `false`)
@@ -67,6 +68,7 @@ Bring Your Own Cloud (BYOC) AWS environment data source.
6768
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
6869
- "ZONE_BEST_EFFORT": keep traffic within same zone
6970
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
71+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
7072
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
7173
- `peering_connections` (Attributes List) AWS environment VPC peering configuration. (see [below for nested schema](#nestedatt--peering_connections))
7274
- `permissions_boundary_policy_arn` (String) Policy ARN that sets the maximum permissions for the IAM roles created by the environment. **[IMMUTABLE]**
@@ -238,6 +240,15 @@ Optional:
238240
- `enabled` (Boolean) Set to `true` if maintenance window is enabled, `false` otherwise. (default `false`)
239241

240242

243+
<a id="nestedatt--metrics_endpoint"></a>
244+
### Nested Schema for `metrics_endpoint`
245+
246+
Optional:
247+
248+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
249+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
250+
251+
241252
<a id="nestedatt--node_groups"></a>
242253
### Nested Schema for `node_groups`
243254

docs/data-sources/env_azure.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Bring Your Own Cloud (BYOC) Azure environment data source.
5757
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
5858
- "ZONE_BEST_EFFORT": keep traffic within same zone
5959
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
60+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
6061
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
6162
- `private_link_service` (Attributes) Azure Private Link service configuration. (see [below for nested schema](#nestedatt--private_link_service))
6263
- `region` (String) Azure region ([docs](https://azure.microsoft.com/en-us/explore/global-infrastructure/geographies/#overview)). **[IMMUTABLE]**
@@ -125,6 +126,15 @@ Optional:
125126
- `enabled` (Boolean) Set to `true` if maintenance window is enabled, `false` otherwise. (default `false`)
126127

127128

129+
<a id="nestedatt--metrics_endpoint"></a>
130+
### Nested Schema for `metrics_endpoint`
131+
132+
Optional:
133+
134+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
135+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
136+
137+
128138
<a id="nestedatt--node_groups"></a>
129139
### Nested Schema for `node_groups`
130140

docs/data-sources/env_gcp.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Bring Your Own Cloud (BYOC) GCP environment data source.
5858
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
5959
- "ZONE_BEST_EFFORT": keep traffic within same zone
6060
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
61+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
6162
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
6263
- `peering_connections` (Attributes List) Network peering configuration. (see [below for nested schema](#nestedatt--peering_connections))
6364
- `private_service_consumers` (List of String) List of project IDs representing the network's private service consumers.
@@ -122,6 +123,15 @@ Optional:
122123
- `enabled` (Boolean) Set to `true` if maintenance window is enabled, `false` otherwise. (default `false`)
123124

124125

126+
<a id="nestedatt--metrics_endpoint"></a>
127+
### Nested Schema for `metrics_endpoint`
128+
129+
Optional:
130+
131+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
132+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
133+
134+
125135
<a id="nestedatt--node_groups"></a>
126136
### Nested Schema for `node_groups`
127137

docs/data-sources/env_hcloud.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Bring Your Own Cloud (BYOC) HCloud environment data source.
6262
Examples:
6363
- ["hil"]
6464
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
65+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
6566
- `network_zone` (String) HCloud network ([docs](https://docs.hetzner.com/cloud/general/locations)). **[IMMUTABLE]**
6667

6768
Examples:
@@ -122,6 +123,15 @@ Optional:
122123
- `enabled` (Boolean) Set to `true` if maintenance window is enabled, `false` otherwise. (default `false`)
123124

124125

126+
<a id="nestedatt--metrics_endpoint"></a>
127+
### Nested Schema for `metrics_endpoint`
128+
129+
Optional:
130+
131+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
132+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
133+
134+
125135
<a id="nestedatt--node_groups"></a>
126136
### Nested Schema for `node_groups`
127137

docs/data-sources/env_k8s.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Bring Your Own Kubernetes (BYOK) environment data source.
6262
- `logs` (Attributes) Kubernetes environment logs configuration (see [below for nested schema](#nestedatt--logs))
6363
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
6464
- `metrics` (Attributes) Metrics configuration (see [below for nested schema](#nestedatt--metrics))
65+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
6566
- `node_groups` (Attributes List) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups))
6667
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
6768
- `spec_revision` (Number) Spec revision
@@ -196,6 +197,15 @@ Optional:
196197
- `retention_period_in_days` (Number) Metrics retention period in days (default `30`).
197198

198199

200+
<a id="nestedatt--metrics_endpoint"></a>
201+
### Nested Schema for `metrics_endpoint`
202+
203+
Optional:
204+
205+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
206+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
207+
208+
199209
<a id="nestedatt--node_groups"></a>
200210
### Nested Schema for `node_groups`
201211

docs/resources/env_aws.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ output "peering_connection_id" {
318318
CNAME *.internal.example.com. _.internal.$env_name.altinity.cloud.
319319
- (optional, vpce)
320320
CNAME *.vpce.example.com. _.vpce.$env_name.altinity.cloud.
321+
- `eks_logging` (Boolean) Enable/Disable EKS control plane logging to CloudWatch (default `false`).
321322
- `endpoints` (Attributes List) AWS environment VPC endpoint configuration (see [below for nested schema](#nestedatt--endpoints))
322323
- `external_buckets` (Attributes Set) List of external S3 bucket to allow access to. (see [below for nested schema](#nestedatt--external_buckets))
323324
- `force_destroy` (Boolean) Locks the environment for accidental deletion when running `terraform destroy` command. Your environment will be deleted, only when setting this parameter to `true`. Once this parameter is set to `true`, there must be a successful `terraform apply` run (before running the `terraform destroy`) to update this value in the state. Without a successful `terraform apply` after this parameter is set, this flag will have no effect. (default `false`)
@@ -330,6 +331,7 @@ output "peering_connection_id" {
330331
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
331332
- "ZONE_BEST_EFFORT": keep traffic within same zone
332333
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
334+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
333335
- `nat` (Boolean) Enable AWS NAT Gateway. **[IMMUTABLE]**
334336
- `peering_connections` (Attributes List) AWS environment VPC peering configuration. (see [below for nested schema](#nestedatt--peering_connections))
335337
- `permissions_boundary_policy_arn` (String) Policy ARN that sets the maximum permissions for the IAM roles created by the environment. **[IMMUTABLE]**
@@ -520,6 +522,15 @@ Optional:
520522
- `enabled` (Boolean) Set to `true` if maintenance window is enabled, `false` otherwise. (default `false`)
521523

522524

525+
<a id="nestedatt--metrics_endpoint"></a>
526+
### Nested Schema for `metrics_endpoint`
527+
528+
Optional:
529+
530+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
531+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
532+
533+
523534
<a id="nestedatt--peering_connections"></a>
524535
### Nested Schema for `peering_connections`
525536

docs/resources/env_azure.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ data "altinitycloud_env_azure_status" "this" {
125125
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
126126
- "ZONE_BEST_EFFORT": keep traffic within same zone
127127
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
128+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
128129
- `private_link_service` (Attributes) Azure Private Link service configuration. (see [below for nested schema](#nestedatt--private_link_service))
129130
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
130131
- `tags` (Attributes List) Tags to apply to Azure resources. (see [below for nested schema](#nestedatt--tags))
@@ -209,6 +210,15 @@ Optional:
209210
- `enabled` (Boolean) Set to `true` if maintenance window is enabled, `false` otherwise. (default `false`)
210211

211212

213+
<a id="nestedatt--metrics_endpoint"></a>
214+
### Nested Schema for `metrics_endpoint`
215+
216+
Optional:
217+
218+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
219+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
220+
221+
212222
<a id="nestedatt--private_link_service"></a>
213223
### Nested Schema for `private_link_service`
214224

docs/resources/env_gcp.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ data "altinitycloud_env_gcp_status" "this" {
132132
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
133133
- "ZONE_BEST_EFFORT": keep traffic within same zone
134134
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
135+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
135136
- `peering_connections` (Attributes List) Network peering configuration. (see [below for nested schema](#nestedatt--peering_connections))
136137
- `private_service_consumers` (List of String) List of project IDs representing the network's private service consumers.
137138
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
@@ -215,6 +216,15 @@ Optional:
215216
- `enabled` (Boolean) Set to `true` if maintenance window is enabled, `false` otherwise. (default `false`)
216217

217218

219+
<a id="nestedatt--metrics_endpoint"></a>
220+
### Nested Schema for `metrics_endpoint`
221+
222+
Optional:
223+
224+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
225+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
226+
227+
218228
<a id="nestedatt--peering_connections"></a>
219229
### Nested Schema for `peering_connections`
220230

@@ -363,6 +373,7 @@ data "altinitycloud_env_gcp_status" "this" {
363373
- "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default)
364374
- "ZONE_BEST_EFFORT": keep traffic within same zone
365375
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
376+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
366377
- `peering_connections` (Attributes List) Network peering configuration. (see [below for nested schema](#nestedatt--peering_connections))
367378
- `private_service_consumers` (List of String) List of project IDs representing the network's private service consumers.
368379
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
@@ -446,6 +457,15 @@ Optional:
446457
- `enabled` (Boolean) Set to `true` if maintenance window is enabled, `false` otherwise. (default `false`)
447458

448459

460+
<a id="nestedatt--metrics_endpoint"></a>
461+
### Nested Schema for `metrics_endpoint`
462+
463+
Optional:
464+
465+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
466+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
467+
468+
449469
<a id="nestedatt--peering_connections"></a>
450470
### Nested Schema for `peering_connections`
451471

docs/resources/env_hcloud.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ data "altinitycloud_env_hcloud_status" "this" {
121121
Examples:
122122
- ["hil"]
123123
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
124+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
124125
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
125126
- `wireguard_peers` (Attributes List) HCloud Wireguard peer configuration. (see [below for nested schema](#nestedatt--wireguard_peers))
126127

@@ -200,6 +201,15 @@ Optional:
200201
- `enabled` (Boolean) Set to `true` if maintenance window is enabled, `false` otherwise. (default `false`)
201202

202203

204+
<a id="nestedatt--metrics_endpoint"></a>
205+
### Nested Schema for `metrics_endpoint`
206+
207+
Optional:
208+
209+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
210+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
211+
212+
203213
<a id="nestedatt--wireguard_peers"></a>
204214
### Nested Schema for `wireguard_peers`
205215

docs/resources/env_k8s.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ resource "altinitycloud_env_k8s" "this" {
371371
- `logs` (Attributes) Kubernetes environment logs configuration (see [below for nested schema](#nestedatt--logs))
372372
- `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows))
373373
- `metrics` (Attributes) Metrics configuration (see [below for nested schema](#nestedatt--metrics))
374+
- `metrics_endpoint` (Attributes) Metrics endpoint configuration. (see [below for nested schema](#nestedatt--metrics_endpoint))
374375
- `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`).
375376

376377
### Read-Only
@@ -558,6 +559,15 @@ Optional:
558559

559560
- `retention_period_in_days` (Number) Metrics retention period in days (default `30`).
560561

562+
563+
<a id="nestedatt--metrics_endpoint"></a>
564+
### Nested Schema for `metrics_endpoint`
565+
566+
Optional:
567+
568+
- `enabled` (Boolean) Set to `true` if metrics endpoint is enabled, `false` otherwise (default `false`).
569+
- `source_ip_ranges` (List of String) IP addresses/blocks to allow traffic from when metrics endpoint is enabled.
570+
561571
## Import
562572

563573
Import is supported using the following syntax:

0 commit comments

Comments
 (0)