diff --git a/pkg/cloud/services/eks/cluster.go b/pkg/cloud/services/eks/cluster.go index bb660c323a..c7d786a690 100644 --- a/pkg/cloud/services/eks/cluster.go +++ b/pkg/cloud/services/eks/cluster.go @@ -278,7 +278,8 @@ func makeVpcConfig(subnets infrav1.Subnets, endpointAccess ekscontrolplanev1.End subnetIds := make([]*string, 0) for i := range subnets { subnet := subnets[i] - subnetIds = append(subnetIds, &subnet.ResourceID) + subnetID := subnet.GetResourceID() + subnetIds = append(subnetIds, &subnetID) } cidrs := make([]*string, 0)