Skip to content

Commit 7db8e97

Browse files
apply PR suggestions: #1198
1 parent 0cac777 commit 7db8e97

File tree

14 files changed

+603
-576
lines changed

14 files changed

+603
-576
lines changed

docs/data-sources/alb.md renamed to docs/data-sources/application_load_balancer.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "stackit_alb Data Source - stackit"
3+
page_title: "stackit_application_load_balancer Data Source - stackit"
44
subcategory: ""
55
description: |-
6-
Setting up supporting infrastructure
7-
The example below creates the supporting infrastructure using the STACKIT Terraform provider, including the network, network interface, a public IP address and server resources.
6+
Application Load Balancer data source schema. Must have a region specified in the provider configuration.
87
---
98

10-
# stackit_alb (Data Source)
9+
# stackit_application_load_balancer (Data Source)
1110

12-
## Setting up supporting infrastructure
13-
14-
15-
The example below creates the supporting infrastructure using the STACKIT Terraform provider, including the network, network interface, a public IP address and server resources.
11+
Application Load Balancer data source schema. Must have a region specified in the provider configuration.
1612

1713
## Example Usage
1814

1915
```terraform
20-
data "stackit_alb" "example" {
16+
data "stackit_application_load_balancer" "example" {
2117
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
2218
name = "example-load-balancer"
2319
}
@@ -36,16 +32,15 @@ data "stackit_alb" "example" {
3632
- `disable_target_security_group_assignment` (Boolean) Disable target security group assignemt to allow targets outside of the given network. Connectivity to targets need to be ensured by the customer, including routing and Security Groups (targetSecurityGroup can be assigned). Not changeable after creation.
3733
- `errors` (Attributes Set) Reports all errors a Application Load Balancer has. (see [below for nested schema](#nestedatt--errors))
3834
- `external_address` (String) The external IP address where this Application Load Balancer is exposed. Not changeable after creation.
39-
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`","region","`name`".
35+
- `id` (String) Terraform's internal resource ID. It is structured as `project_id`,`region`,`name`.
4036
- `labels` (Map of String) Labels represent user-defined metadata as key-value pairs. Label count cannot exceed 64 per ALB.
4137
- `listeners` (Attributes List) List of all listeners which will accept traffic. Limited to 20. (see [below for nested schema](#nestedatt--listeners))
4238
- `load_balancer_security_group` (Attributes) Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets. (see [below for nested schema](#nestedatt--load_balancer_security_group))
4339
- `networks` (Attributes Set) List of networks that listeners and targets reside in. (see [below for nested schema](#nestedatt--networks))
4440
- `options` (Attributes) Defines any optional functionality you want to have enabled on your Application Load Balancer. (see [below for nested schema](#nestedatt--options))
45-
- `plan_id` (String) Service Plan configures the size of the Application Load Balancer. Possible values are: `p10`.. This list can change in the future. Therefore, this is not an enum.
41+
- `plan_id` (String) Service Plan configures the size of the Application Load Balancer.
4642
- `private_address` (String)
47-
- `region` (String) The resource region. If not defined, the provider region is used. Possible values are: `eu01`, `eu02`.
48-
- `status` (String) Enum: "STATUS_UNSPECIFIED" "STATUS_PENDING" "STATUS_READY" "STATUS_ERROR" "STATUS_TERMINATING"
43+
- `region` (String) The resource region. If not defined, the provider region is used.
4944
- `target_pools` (Attributes List) List of all target pools which will be used in the Application Load Balancer. Limited to 20. (see [below for nested schema](#nestedatt--target_pools))
5045
- `target_security_group` (Attributes) Security Group that allows the targets to receive traffic from the LoadBalancer. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets. (see [below for nested schema](#nestedatt--target_security_group))
5146
- `version` (String) Application Load Balancer resource version. Used for concurrency safe updates.
@@ -178,11 +173,19 @@ Read-Only:
178173

179174
Read-Only:
180175

181-
- `acl` (Set of String) Use this option to limit the IP ranges that can use the Application Load Balancer.
176+
- `access_control` (Attributes) Use this option to limit the IP ranges that can use the Application Load Balancer. (see [below for nested schema](#nestedatt--options--access_control))
182177
- `ephemeral_address` (Boolean) This option automates the handling of the external IP address for an Application Load Balancer. If set to true a new IP address will be automatically created. It will also be automatically deleted when the Load Balancer is deleted.
183178
- `observability` (Attributes) We offer Load Balancer observability via STACKIT Observability or external solutions. (see [below for nested schema](#nestedatt--options--observability))
184179
- `private_network_only` (Boolean) Application Load Balancer is accessible only via a private network ip address. Not changeable after creation.
185180

181+
<a id="nestedatt--options--access_control"></a>
182+
### Nested Schema for `options.access_control`
183+
184+
Read-Only:
185+
186+
- `allowed_source_ranges` (Set of String) Application Load Balancer is accessible only from an IP address in this range.
187+
188+
186189
<a id="nestedatt--options--observability"></a>
187190
### Nested Schema for `options.observability`
188191

docs/resources/alb.md renamed to docs/resources/application_load_balancer.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
# generated by https://github.com/hashicorp/terraform-plugin-docs
3-
page_title: "stackit_alb Resource - stackit"
3+
page_title: "stackit_application_load_balancer Resource - stackit"
44
subcategory: ""
55
description: |-
66
Setting up supporting infrastructure
77
The example below creates the supporting infrastructure using the STACKIT Terraform provider, including the network, network interface, a public IP address and server resources.
88
---
99

10-
# stackit_alb (Resource)
10+
# stackit_application_load_balancer (Resource)
1111

1212
## Setting up supporting infrastructure
1313

@@ -116,7 +116,7 @@ resource "stackit_loadbalancer_observability_credential" "observability" {
116116
}
117117
118118
# Create a Application Load Balancer
119-
resource "stackit_alb" "example" {
119+
resource "stackit_application_load_balancer" "example" {
120120
project_id = var.project_id
121121
region = "eu01"
122122
name = "example-load-balancer"
@@ -238,15 +238,14 @@ resource "stackit_alb" "example" {
238238
- `external_address` (String) The external IP address where this Application Load Balancer is exposed. Not changeable after creation.
239239
- `labels` (Map of String) Labels represent user-defined metadata as key-value pairs. Label count cannot exceed 64 per ALB.
240240
- `options` (Attributes) Defines any optional functionality you want to have enabled on your Application Load Balancer. (see [below for nested schema](#nestedatt--options))
241-
- `region` (String) The resource region. If not defined, the provider region is used. Possible values are: `eu01`, `eu02`.
241+
- `region` (String) The resource region (e.g. eu01). If not defined, the provider region is used.
242242

243243
### Read-Only
244244

245245
- `errors` (Attributes Set) Reports all errors a Application Load Balancer has. (see [below for nested schema](#nestedatt--errors))
246-
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`","region","`name`".
246+
- `id` (String) Terraform's internal resource ID. It is structured as `project_id`,`region`,`name`.
247247
- `load_balancer_security_group` (Attributes) Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets. (see [below for nested schema](#nestedatt--load_balancer_security_group))
248248
- `private_address` (String)
249-
- `status` (String) Enum: "STATUS_UNSPECIFIED" "STATUS_PENDING" "STATUS_READY" "STATUS_ERROR" "STATUS_TERMINATING"
250249
- `target_security_group` (Attributes) Security Group that allows the targets to receive traffic from the LoadBalancer. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets. (see [below for nested schema](#nestedatt--target_security_group))
251250
- `version` (String) Application Load Balancer resource version. Used for concurrency safe updates.
252251

@@ -436,11 +435,19 @@ Optional:
436435

437436
Optional:
438437

439-
- `acl` (Set of String) Use this option to limit the IP ranges that can use the Application Load Balancer.
438+
- `access_control` (Attributes) Use this option to limit the IP ranges that can use the Application Load Balancer. (see [below for nested schema](#nestedatt--options--access_control))
440439
- `ephemeral_address` (Boolean) This option automates the handling of the external IP address for an Application Load Balancer. If set to true a new IP address will be automatically created. It will also be automatically deleted when the Load Balancer is deleted.
441440
- `observability` (Attributes) We offer Load Balancer observability via STACKIT Observability or external solutions. (see [below for nested schema](#nestedatt--options--observability))
442441
- `private_network_only` (Boolean) Application Load Balancer is accessible only via a private network ip address. Not changeable after creation.
443442

443+
<a id="nestedatt--options--access_control"></a>
444+
### Nested Schema for `options.access_control`
445+
446+
Required:
447+
448+
- `allowed_source_ranges` (Set of String) Application Load Balancer is accessible only from an IP address in this range.
449+
450+
444451
<a id="nestedatt--options--observability"></a>
445452
### Nested Schema for `options.observability`
446453

@@ -475,7 +482,7 @@ Required:
475482
Read-Only:
476483

477484
- `description` (String) The error description contains additional helpful user information to fix the error state of the Application Load Balancer. For example the IP 45.135.247.139 does not exist in the project, then the description will report: Floating IP "45.135.247.139" could not be found.
478-
- `type` (String) Enum: "TYPE_UNSPECIFIED" "TYPE_INTERNAL" "TYPE_QUOTA_SECGROUP_EXCEEDED" "TYPE_QUOTA_SECGROUPRULE_EXCEEDED" "TYPE_PORT_NOT_CONFIGURED" "TYPE_FIP_NOT_CONFIGURED" "TYPE_TARGET_NOT_ACTIVE" "TYPE_METRICS_MISCONFIGURED" "TYPE_LOGS_MISCONFIGURED"
485+
- `type` (String) Enum: Possible values are: `TYPE_UNSPECIFIED`, `TYPE_INTERNAL`, `TYPE_QUOTA_SECGROUP_EXCEEDED`, `TYPE_QUOTA_SECGROUPRULE_EXCEEDED`, `TYPE_PORT_NOT_CONFIGURED`, `TYPE_FIP_NOT_CONFIGURED`, `TYPE_TARGET_NOT_ACTIVE`, `TYPE_METRICS_MISCONFIGURED`, `TYPE_LOGS_MISCONFIGURED`.
479486
The error type specifies which part of the Application Load Balancer encountered the error. I.e. the API will not check if a provided public IP is actually available in the project. Instead the Application Load Balancer with try to use the provided IP and if not available reports TYPE_FIP_NOT_CONFIGURED error.
480487

481488

examples/data-sources/stackit_alb/data-source.tf renamed to examples/data-sources/stackit_application_load_balancer/data-source.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
data "stackit_alb" "example" {
1+
data "stackit_application_load_balancer" "example" {
22
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
33
name = "example-load-balancer"
44
}

examples/resources/stackit_alb/resource.tf renamed to examples/resources/stackit_application_load_balancer/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ resource "stackit_loadbalancer_observability_credential" "observability" {
9797
}
9898

9999
# Create a Application Load Balancer
100-
resource "stackit_alb" "example" {
100+
resource "stackit_application_load_balancer" "example" {
101101
project_id = var.project_id
102102
region = "eu01"
103103
name = "example-load-balancer"

stackit/internal/core/core.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ type ProviderData struct {
3131
// Deprecated: Use DefaultRegion instead
3232
Region string
3333
DefaultRegion string
34+
ALBCustomEndpoint string
3435
AuthorizationCustomEndpoint string
3536
CdnCustomEndpoint string
3637
DnsCustomEndpoint string
3738
GitCustomEndpoint string
3839
IaaSCustomEndpoint string
3940
KMSCustomEndpoint string
40-
ALBCustomEndpoint string
4141
LoadBalancerCustomEndpoint string
4242
LogMeCustomEndpoint string
4343
MariaDBCustomEndpoint string

0 commit comments

Comments
 (0)