diff --git a/pkg/cloud/services/eks/cluster.go b/pkg/cloud/services/eks/cluster.go index ffc502af04..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.ID) + subnetID := subnet.GetResourceID() + subnetIds = append(subnetIds, &subnetID) } cidrs := make([]*string, 0) diff --git a/pkg/cloud/services/network/routetables.go b/pkg/cloud/services/network/routetables.go index 934ff65fbb..b9ec4fb7b2 100644 --- a/pkg/cloud/services/network/routetables.go +++ b/pkg/cloud/services/network/routetables.go @@ -115,6 +115,7 @@ func (s *Service) reconcileRouteTables() error { // Not recording "SuccessfulTagRouteTable" here as we don't know if this was a no-op or an actual change continue } + s.scope.Debug("Subnet isn't associated with route table", "subnet-id", sn.GetResourceID()) // For each subnet that doesn't have a routing table associated with it, // create a new table with the appropriate default routes and associate it to the subnet.