diff --git a/internal/services/k8s/pool.go b/internal/services/k8s/pool.go index 6f54e50845..a9770c73d5 100644 --- a/internal/services/k8s/pool.go +++ b/internal/services/k8s/pool.go @@ -250,11 +250,12 @@ func ResourcePool() *schema.Resource { Description: "The status of the pool", }, "security_group_id": { - Type: schema.TypeString, - Computed: true, - Optional: true, - ForceNew: true, - Description: "The ID of the security group", + Type: schema.TypeString, + Computed: true, + Optional: true, + ForceNew: true, + Description: "The ID of the security group", + DiffSuppressFunc: dsf.Locality, }, }, } @@ -433,7 +434,7 @@ func ResourceK8SPoolRead(ctx context.Context, d *schema.ResourceData, m any) dia _ = d.Set("zone", pool.Zone) _ = d.Set("upgrade_policy", poolUpgradePolicyFlatten(pool)) _ = d.Set("public_ip_disabled", pool.PublicIPDisabled) - _ = d.Set("security_group_id", locality.ExpandID(pool.SecurityGroupID)) + _ = d.Set("security_group_id", pool.SecurityGroupID) if pool.PlacementGroupID != nil { _ = d.Set("placement_group_id", zonal.NewID(pool.Zone, *pool.PlacementGroupID).String())