diff --git a/docs/resources/public_ip.md b/docs/resources/public_ip.md index 4ea9e8d9..f2f2c797 100644 --- a/docs/resources/public_ip.md +++ b/docs/resources/public_ip.md @@ -35,7 +35,7 @@ resource "stackit_public_ip" "example" { ### Optional - `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container -- `network_interface_id` (String) Associates the public IP with a network interface or a virtual IP (ID). +- `network_interface_id` (String) Associates the public IP with a network interface or a virtual IP (ID). If you are using this resource with a Kubernetes Load Balancer or any other resource which associates a network interface implicitly, use the lifecycle `ignore_changes` property in this field to prevent unintentional removal of the network interface due to drift in the Terraform state ### Read-Only diff --git a/stackit/internal/services/iaas/publicip/resource.go b/stackit/internal/services/iaas/publicip/resource.go index 2dd733a5..69bbc169 100644 --- a/stackit/internal/services/iaas/publicip/resource.go +++ b/stackit/internal/services/iaas/publicip/resource.go @@ -151,7 +151,7 @@ func (r *publicIpResource) Schema(_ context.Context, _ resource.SchemaRequest, r }, }, "network_interface_id": schema.StringAttribute{ - Description: "Associates the public IP with a network interface or a virtual IP (ID).", + Description: "Associates the public IP with a network interface or a virtual IP (ID). If you are using this resource with a Kubernetes Load Balancer or any other resource which associates a network interface implicitly, use the lifecycle `ignore_changes` property in this field to prevent unintentional removal of the network interface due to drift in the Terraform state", Optional: true, Validators: []validator.String{ validate.UUID(),