feat(loadbalancer): add security_group_id and disable_security_group_assignment field (#986)
This commit is contained in:
parent
65c6106ea9
commit
b1e97e92f9
9 changed files with 350 additions and 62 deletions
|
|
@ -69,6 +69,8 @@ func (r *loadBalancerDataSource) Schema(_ context.Context, _ datasource.SchemaRe
|
|||
"id": "Terraform's internal resource ID. It is structured as \"`project_id`\",\"region\",\"`name`\".",
|
||||
"project_id": "STACKIT project ID to which the Load Balancer is associated.",
|
||||
"external_address": "External Load Balancer IP address where this Load Balancer is exposed.",
|
||||
"disable_security_group_assignment": "If set to true, this will disable the automatic assignment of a security group to the load balancer's targets. This option is primarily used to allow targets that are not within the load balancer's own network or SNA (STACKIT Network area). When this is enabled, you are fully responsible for ensuring network connectivity to the targets, including managing all routing and security group rules manually. This setting cannot be changed after the load balancer is created.",
|
||||
"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`.",
|
||||
"listeners": "List of all listeners which will accept traffic. Limited to 20.",
|
||||
"port": "Port number where we listen for traffic.",
|
||||
"protocol": "Protocol is the highest network protocol we understand to load balance.",
|
||||
|
|
@ -125,6 +127,10 @@ func (r *loadBalancerDataSource) Schema(_ context.Context, _ datasource.SchemaRe
|
|||
Description: descriptions["external_address"],
|
||||
Computed: true,
|
||||
},
|
||||
"disable_security_group_assignment": schema.BoolAttribute{
|
||||
Description: descriptions["disable_security_group_assignment"],
|
||||
Computed: true,
|
||||
},
|
||||
"plan_id": schema.StringAttribute{
|
||||
Description: descriptions["plan_id"],
|
||||
Computed: true,
|
||||
|
|
@ -339,6 +345,10 @@ func (r *loadBalancerDataSource) Schema(_ context.Context, _ datasource.SchemaRe
|
|||
Optional: true,
|
||||
Description: descriptions["region"],
|
||||
},
|
||||
"security_group_id": schema.StringAttribute{
|
||||
Description: descriptions["security_group_id"],
|
||||
Computed: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue