Skip to content

Commit 3b62a40

Browse files
committed
added missing loadbalancersecuritygroupid attribute and fields
1 parent 76b08de commit 3b62a40

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/resources/loadbalancer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,9 @@ import {
242242
### Read-Only
243243

244244
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`","region","`name`".
245+
- `load_balancer_security_group_id` (String) The ID of the egress security group assigned to the Load Balancer's internal machines. This ID is essential for allowing traffic from the Load Balancer to targets in different networks or STACKIT network areas (SNA). To enable this, create a security group rule for your target VMs and set the `remote_security_group_id` of that rule to this value. This is typically used when `disable_security_group_assignment` is set to `true`.
245246
- `private_address` (String) Transient private Load Balancer IP address. It can change any time.
246-
- `security_group_id` (String) The ID of the egress security group assigned to the Load Balancer's internal machines. This ID is essential for allowing traffic from the Load Balancer to targets in different networks or STACKIT network areas (SNA). To enable this, create a security group rule for your target VMs and set the `remote_security_group_id` of that rule to this value. This is typically used when `disable_security_group_assignment` is set to `true`.
247+
- `security_group_id` (String) The ID of the backend security group
247248

248249
<a id="nestedatt--listeners"></a>
249250
### Nested Schema for `listeners`

stackit/internal/services/loadbalancer/loadbalancer/resource.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ func (r *loadBalancerResource) Schema(_ context.Context, _ resource.SchemaReques
345345
"targets.display_name": "Target display name",
346346
"ip": "Target IP",
347347
"region": "The resource region. If not defined, the provider region is used.",
348-
"security_group_id": "The ID of the egress security group assigned to the Load Balancer's internal machines. This ID is essential for allowing traffic from the Load Balancer to targets in different networks or STACKIT network areas (SNA). To enable this, create a security group rule for your target VMs and set the `remote_security_group_id` of that rule to this value. This is typically used when `disable_security_group_assignment` is set to `true`.",
348+
"security_group_id": "The ID of the backend security group",
349+
"load_balancer_security_group_id": "The ID of the egress security group assigned to the Load Balancer's internal machines. This ID is essential for allowing traffic from the Load Balancer to targets in different networks or STACKIT network areas (SNA). To enable this, create a security group rule for your target VMs and set the `remote_security_group_id` of that rule to this value. This is typically used when `disable_security_group_assignment` is set to `true`.",
349350
}
350351

351352
resp.Schema = schema.Schema{
@@ -693,6 +694,13 @@ The example below creates the supporting infrastructure using the STACKIT Terraf
693694
stringplanmodifier.UseStateForUnknown(),
694695
},
695696
},
697+
"load_balancer_security_group_id": schema.StringAttribute{
698+
Description: descriptions["load_balancer_security_group_id"],
699+
Computed: true,
700+
PlanModifiers: []planmodifier.String{
701+
stringplanmodifier.UseStateForUnknown(),
702+
},
703+
},
696704
},
697705
}
698706
}

0 commit comments

Comments
 (0)